vinsol / fullcalendar-rails-engine

Rails engine implementation of fullcalendar jQuery plugin(http://arshaw.com/fullcalendar/). Create, edit, delete, reschedule, resize events like google calendar.
http://vinsol.com/fullcalendar-demo
MIT License
66 stars 51 forks source link

Did anyone get this working with will_paginate? #35

Open JohnMerlino1 opened 8 years ago

JohnMerlino1 commented 8 years ago

I am unable to get this working with will_paginate, as I explain here: https://github.com/mislav/will_paginate/pull/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?