Add dynamic products per page, i.e. links for 12, 24, 48, all products?
78 views
Skip to first unread message
Ross Rankin
unread,
May 19, 2012, 3:19:24 PM5/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
So I see that Kaminari says in the read me that it supports it but I cannot find a way to allow users to dynamically change how many products are displayed per page. My default is 12 products, i'd like links next to the "1 2 3 4 5 ... Next › Last » " links. So ideally it would be "Products per page: 12, 24, 48, All 1 2 3 4 5 ... Next › Last »".
Stack Overflow is hasn't be helpful, hoping someone can help here. Thanks!
Ross
Olaf Tiemann
unread,
May 21, 2012, 2:21:51 PM5/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Something like
<%= link_to '50 per page', params.merge({:per_page => 50}) %>
should work to build custom links.