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

Already on GitHub? Sign in to your account

Wrong pagination links rendered #235

Closed
agis opened this Issue Mar 17, 2012 · 3 comments

Comments

Projects
None yet
3 participants

agis commented Mar 17, 2012

Hi there.

will_paginate generates links like these: http://0.0.0.0:3000/assets?action=show&city=blabla&controller=cities&page=2 which are obviously wrong.

I'm guessing that this has to do with the way I'm using the partials (shared partials with objects passed) but I'm a beginner so I couldn't make it work :)

agis commented Apr 13, 2012

Any help on this? Anyone?

yes. I'm also have same problem :(

Owner

mislav commented Jan 10, 2013

This seems to have been the problem with Rails router. will_paginate doesn't actually generate URLs—it delegates that job to the url_for helper

So any problem similar to this is solved by fixing our routes file, or maybe upgrading Rails if there was a bug in that version. Ofter routing problems are solved by reordering the routes. Since I can't see your routes file, I can't help you in this instance.

@mislav mislav closed this Jan 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment