摘要: 回想Rails --Active Record Query Interface--Scopes的基本用法: 1.Passing in arguments.例子:scope :name , -> {order("..")} 2.Using conditionals. scope :name, -> { 阅读全文
posted @ 2017-11-27 19:54 Mr-chen 阅读(107) 评论(0) 推荐(0) 编辑