This works fine:
<%= link_to 'events', fullcalendar_engine_path %>
because I specified the route in routes.rb:
mount FullcalendarEngine::Engine , at: "/fullcalendar_engine"
resources :events, module: 'fullcalendar_engine' , only: [:index, :show] do
collection do
get 'calendar', to: 'events#index', as: 'calendar'
end
end
Yet when I try to generate a path to /fullcalendar_engine using will_paginate:
<%= will_paginate table.collection, :params => { controller: fullcalendar_engine_path, action: 'index' } %>
I get the following error:
No route matches {:action=>"index", :controller=>"fullcalendar_engine", :id=>"56721d6f6d61632e8c020000", :page=>2}
Why would it give this error when the route exists?
This works fine:
because I specified the route in routes.rb:
Yet when I try to generate a path to /fullcalendar_engine using will_paginate:
I get the following error:
No route matches {:action=>"index", :controller=>"fullcalendar_engine", :id=>"56721d6f6d61632e8c020000", :page=>2}
Why would it give this error when the route exists?