my face
About Me

Published Posts

All Posts

New Post


View by Tag:

interviewing, code, testing, philosophy, blog, wantmyjob, virtualization, railsmud, heroku, ruby, published, neoarchaeology, railsgame, rails, juggernaut, astrino, cheaptoad, shannaspizza, mongodb, refactorit, devise, rvm, passenger, jruby, programming, vagrant, chef, railsframe, business, codefolio


Online Portfolio

Resume

Profile on LinkedIn

Recommend me on WorkingWithRails: Recommend Me

will_paginate benefits

Posted: 2 years ago (2009-06-23 16:53:27 UTC )

Ah, here we go. I replaced my old hacked pager code with the following line in my view: "<%= will_paginate :id => true %>". And suddenly, paging works with tags, I have appropriate CSS classes for all the bits at the bottom, the pager disappears when there's only one page...

That would be why will_paginate is worth the trouble.

I need to redo my CSS to style it, but that's a pretty small thing. I guess will_paginate is more awesome than I gave it credit for. I still hope they fix the count thing :-)

Previous: will_paginate weirdness and bugs / Next: will_paginate example CSS

Edit | Destroy | See All Posts

blog comments powered by Disqus