will_paginate指定controller和action

<%= will_paginate @feed_items, 
                  params: {:controller => 'static_pages', :action => 'home'}, 
                  renderer: BootstrapPagination::Rails %>

可以解决rails tutorial中第11章节424页中的问题(很奇怪书中没有去解决)

1.png

你可能感兴趣的:(will_paginate指定controller和action)