mislav / will_paginate

Pagination library for Rails and other Ruby applications
http://github.com/mislav/will_paginate/wikis
MIT License
5.7k stars 864 forks source link

Friendly will_paginate URLs in Padrino #282

Open mariusbutuc opened 11 years ago

mariusbutuc commented 11 years ago

will_paginate uses ActionController's url_for helper which makes it a piece of cake to have user/SEO friendly URLs in Rails.

How can I get the same friendliness in a Padrino app? Maybe without monkey patching WillPaginate::ActionView::LinkRenderer#url?

Would extending WillPaginate::Sinatra::Helpers#url to use url_field_tag for Padrino be the way to go?

mislav commented 11 years ago

Haven't used Padrino, so not sure what's involved. Maybe you could take a stab of turning this issue into a pull request?