阅读背景:

在has_one关联的Rails 3.2.11中按顺序作用域

来源:互联网 

In my Rails 3.2.11 app I have a scope that I'm trying to order by based on an associated attribute. In my case I have a User model and a Profile model. The User has_one Profile, and my scope is on an attribute on the profiles table. Here's the scope:In my Rails 3.2.11 app I have a scope that I'm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: