开发者

unknown action with will_paginate

In my users controller I have this in a me开发者_开发技巧thod:

 @users = User.paginate :page => params[:page], :per_page => 10,

The results are rendered on users/search. The 2nd page link points to users/search?page=2, but it leads to an unknown action error.


Possibly there is something wrong in routes.rb, so you haven't got :search=>:get rout

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜