标签: activerecord ruby-on-rails-3 will-paginate
我想在will_paginate上使用此查询:
will_paginate
@courses = Course.where("id not in (?)", current_user.courses).paginate :page => params[:page], :order => 'code asc'
不幸的是,它没有得到我想要的结果。
答案 0 :(得分:1)
我添加了:per_page参数。礼貌布莱恩。
:per_page