我想使用这个查询will_paginate
:
@courses = Course.where("id not in (?)", current_user.courses).paginate :page => params[:page], :order => 'code asc'
不幸的是,它没有得到我想要的结果。
我想使用这个查询will_paginate
:
@courses = Course.where("id not in (?)", current_user.courses).paginate :page => params[:page], :order => 'code asc'
不幸的是,它没有得到我想要的结果。