will paginate, nested routes, ruby, rails
- by Sam
I'm trying to get will paginate to link to my nested route instead of the regular posts variable. I know I'm supposed to pass some params to paginate but I don't know how to pass them.
Basically there is an array stored in @posts and the other param paginate has access to is category_id.
The nested route is /category/1/posts but hitting next and…