码迷,mamicode.com
首页 > 其他好文 > 详细

11月27日

时间:2017-11-27 21:36:27      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:where   red   ati   for   ...   passing   one   info   com   

回想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日

标签:where   red   ati   for   ...   passing   one   info   com   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!