I'm trying to customize the URLs generated by the Kaminari pagination links. In my routes file, I have this:
get 'settings' => 'accounts#show', as: 'settings'
and in my HAML partial I have this:
= paginate @users
However, when I'm on the page /settings?per_page=1
and click the next page link, it goes to /account?page=2&per_page=1
instead of /settings?page=2&per_page=1
.
What Kaminari params do I need to add to make sure I go to the correct URL? Using Kaminari 0.16.3 and Rails 3.2.22.1.
Aucun commentaire:
Enregistrer un commentaire