You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you have not stumbled across an answer to this elsewhere, I believe I can confirm that. I have defined in my routes file a named route something like the following:
resources :parts do
collection do
get 'search/:search(/page/:page)' => 'parts#index', :as => :search
end
end
With a route like that in place, links generated with link_to will indeed transform a params hash with keys like :search and :page to a cleaner form. E.g.:
hi there,
i want kaminari to use the following route :
match "/:category(/page/:page)" => "viewer#index", :as => "category_index"
instead of going to the old route
/viewer/index?category=fiction&page=2
would i have to modiify the kaminari views? cant find any posts or comments from any1 with relation to this
The text was updated successfully, but these errors were encountered: