Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did anyone get this working with will_paginate? #35

Open
JohnMerlino1 opened this issue Jul 22, 2016 · 0 comments
Open

Did anyone get this working with will_paginate? #35

JohnMerlino1 opened this issue Jul 22, 2016 · 0 comments

Comments

@JohnMerlino1
Copy link

JohnMerlino1 commented Jul 22, 2016

I am unable to get this working with will_paginate, as I explain here: mislav/will_paginate#172

I have the following in my routes.rb:

mount FullcalendarEngine::Engine , at: "/fullcalendar_engine"

resources :events,  module: 'fullcalendar_engine' , only: [:index, :show] do

 collection do
  get 'calendar', to: 'events#calendar', as: 'calendar'
    post :check
  end
end

But there is no way for me to generate the url:

FullcalendarEngine::Engine.routes.url_for({ controller: 'events', action: 'index'})
ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"events"}

 RailsDevise::Application.routes.url_for({ controller: 'events', action: 'index'})
ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"events"}

What can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant