Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friendly will_paginate URLs in Padrino #282

Open
mariusbutuc opened this issue Jan 4, 2013 · 1 comment
Open

Friendly will_paginate URLs in Padrino #282

mariusbutuc opened this issue Jan 4, 2013 · 1 comment

Comments

@mariusbutuc
Copy link

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
Copy link
Owner

mislav commented Jan 7, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants