我有这些桌子
users和profiles
用户有一个配置文件。
point表中有一个列profiles。
我想获取所有按point. 如何自定义此控制器?
控制器
@users = User.confirmed.page(params[:page]).order("point DESC")
模型
scope :confirmed, where("confirmation_token" => nil)
我有这些桌子
users和profiles
用户有一个配置文件。
point表中有一个列profiles。
我想获取所有按point. 如何自定义此控制器?
控制器
@users = User.confirmed.page(params[:page]).order("point DESC")
模型
scope :confirmed, where("confirmation_token" => nil)