I have the following routes:
scope :module => "apps::dmvcs" do
resources :dmv do
member do
get :locations
end
end
end
On the locations page I have this:
- page_results = @location.cities.includes(:location).paginate :page =>
params[:page], :per_page => 50
and then try this when displaying the results:
= will_paginate page_results
But I get an error like this:
No route matches {:action=>"locations", :controller=>"apps/dmvcs/dmv", :id=>"CA-California", :page=>2}
Does anyone have a clue how to handle something like this?