will_paginate without losing params

I’m sure you like will_paginate, it seams magic! But I was having the issue, that I simply solved like that:

will_paginate(@reports, :params => params.except(:page))

0 Responses to “will_paginate without losing params”



  1. Leave a Comment

Leave a Reply




Last Regedor’s twitts

  • @rubenfonseca cool, I just bought it! :) 1 day ago
  • tried Rails3 and ruby 1.9.2 and it's awesome, but too many gems are still incompatible. I' ll wait a little longer to get really into it. 2 days ago

Last Regedor's bookmarks