will_paginate multiple collections
-
Matt Aimonetti
- Title changed from [enhancement][patch] will_paginate paginate multiple list in same page to [enhancement][patch] will_paginate paginate multiple lists in the same page
-
Mislav
- Title changed from [enhancement][patch] will_paginate paginate multiple lists in the same page to will_paginate multiple collections
- State changed from new to open
This has been on my roadmap for quite some time. I will make it happen!
-
Charles Brian Quinn
Nicely done. I started whipping this up and came here to make sure no one had already done it.
I noticed the patch misses the next and previous links:
# next and previous buttons links.unshift page_link_or_span(entries.previous_page, 'disabled', options.delete(:prev_label), options[:page_param]) links.push page_link_or_span(entries.next_page, 'disabled', options.delete(:next_label), options[:page_param])also patch didn't apply clean on latest (line break issues maybe)?
possible refactor could pass on options to the link_helper. Sorry, no tests either, I'm guessing an:
assert_select to verify the correct custom page_param is in the a href links would work.
Mislav, let me know if you want help or want to just pass off to me.
-
Matt Aimonetti (mattetti)
Mislav, any news about this new feature implementation?
-
Mislav
Matt,
I will commit as soon as I find time. I've decided to throw in more magic than simply apply the patch from Quinn (BTW, thanks man!)
-
Chris Wanstrath
- State changed from open to resolved
(from [300]) WillPaginate: add :param_name option to enable overriding the page parameter name when calling the will_paginate helper. Of course, this defaults to "page" like before. Also add test_will_paginate_preserves_parameters to prove that #65 is invalid. [Matt Aimonetti, Charles Brian Quinn] [#56 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.