Rails will_paginate custom route
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I use will_paginate with a custom route? I have the following in my routes: map.connect 'human-readable/:name', :controller => :tags, :action => 'show' but will_paginate uses url_for as far as I can tell, but I want to use 'human-readable' instead of url_for, but how? Edit When I click the paging link generated by will_paginate , it's using: "tags/show?name=Elektronikindustri&page=1" Instead of: "/human-readable/show?name=Elektronikindustri&page=1" I want will_paginate to use my custom route instead of the actual controller name 回答1: