Skip to content

no matching route error even though route exists #463

Description

@JohnMerlino1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions