I want to have the url /community
so here is what I did. I created the controller: CommunitiesController
and have this in my routes:
get 'community' => 'communities#index'
Did I set this up incorrectly? The problem I'm having is I now want to add the kaminari pagination gym but the naming mismatch is causing this not to work:
get 'community' => 'communities#index'
resources :communities do
get 'page/:page', action: :index, on: :collection
end
as it wants me to user /communities/page/1
when I want to use /community/page/1
What would be the correct way to setup a controller and route with this use case?