首页 > 其他 > 详细

11月27日

时间:2017-11-27 20:31:37      阅读:206      评论:0      收藏:0      [点我收藏+]

回想Rails --Active Record Query Interface--Scopes的基本用法:

1.Passing in arguments.例子:scope  :name , -> {order("..")}

2.Using conditionals.             scope :name, -> {where(...)} 


单词:migrate:

1. if people migrate, they go to live in another area or country, especially in order to find work.

2. (computer) to move information or software from one computer system to another.

11月27日

原文:http://www.cnblogs.com/chentianwei/p/7905788.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!