Now I have pagination slug like this:
/catalog?page=5 but /catalog/page5 is needed.
/catalog?page=5
/catalog/page5
Thank you!
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
Here is the example of how you can achieve that
You can refer to documentation for further information