开发者

unknown action with will_paginate

开发者 https://www.devze.com 2022-12-25 02:25 出处:网络
In my users controller I have this in a me开发者_开发技巧thod: @users = User.paginate :page => params[:page], :per_page => 10,

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

精彩评论

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