3

我想使用这个查询will_paginate

@courses = Course.where("id not in (?)", current_user.courses).paginate :page => params[:page], :order => 'code asc'

不幸的是,它没有得到我想要的结果。

4

1 回答 1

1

我添加了:per_page参数。礼貌布赖恩。

于 2011-01-22T22:09:16.290 回答