how to remove get request in kaminari pagination?

106 views Asked by At

Now I have pagination slug like this:

/catalog?page=5 but /catalog/page5 is needed.

Thank you!

1

There are 1 answers

0
Nikita Misharin On

Here is the example of how you can achieve that

concern :paginatable do
  get '(page/:page)', action: :index, on: :collection, as: ''
end

resources :my_resources, concerns: :paginatable

You can refer to documentation for further information