Draiken/opinio — Issue #4: Pagination not working
Author: abhidsm
Created: 2012-01-31 13:55:38+00:00
State: open

We are using `render_comments @articles` in our view to show the comments. And we have added the `paginate comments` to show the pagination links. The pagination adds `?page=N` to the URL and which loads the same page with the partial.

I checked the helper (lib/opinio/controllers/helpers.rb) and found that the render_comments method passing comments value as `object.comments.page(1).limit(limit)`. Here the page value is hard coded to 1, so it won't load the other pages. Can you please help me with a solution?

Thanks!