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

/fullcalendar_engine: Permission denied #29

Open McEileen opened 8 years ago

McEileen commented 8 years ago

I ran mount FullcalendarEngine::Engine => "/fullcalendar_engine" and got "-bash: /fullcalendar_engine: Permission denied" I googled the error but couldn't find any helpful results. Any help? Thanks!

ehannes commented 8 years ago

What is the output of rake routes?

McEileen commented 8 years ago
rake routes

                  Prefix Verb   URI Pattern                    Controller#Action
             rails_admin        /admin                         RailsAdmin::Engine
        new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
            user_session POST   /users/sign_in(.:format)       devise/sessions#create
    destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
           user_password POST   /users/password(.:format)      devise/passwords#create
       new_user_password GET    /users/password/new(.:format)  devise/passwords#new
      edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                         PATCH  /users/password(.:format)      devise/passwords#update
                         PUT    /users/password(.:format)      devise/passwords#update
cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
       user_registration POST   /users(.:format)               devise/registrations#create
   new_user_registration GET    /users/sign_up(.:format)       devise/registrations#new
  edit_user_registration GET    /users/edit(.:format)          devise/registrations#edit
                         PATCH  /users(.:format)               devise/registrations#update
                         PUT    /users(.:format)               devise/registrations#update
                         DELETE /users(.:format)               devise/registrations#destroy
        volunteers_index GET    /volunteers/index(.:format)    volunteers#index
              home_index GET    /home/index(.:format)          home#index
                    root GET    /                              home#index
              volunteers GET    /volunteers(.:format)          volunteers#index
                         POST   /volunteers(.:format)          volunteers#create
           new_volunteer GET    /volunteers/new(.:format)      volunteers#new
          edit_volunteer GET    /volunteers/:id/edit(.:format) volunteers#edit
               volunteer GET    /volunteers/:id(.:format)      volunteers#show
                         PATCH  /volunteers/:id(.:format)      volunteers#update
                         PUT    /volunteers/:id(.:format)      volunteers#update
                         DELETE /volunteers/:id(.:format)      volunteers#destroy

Routes for RailsAdmin::Engine:
  dashboard GET         /                                      rails_admin/main#dashboard
      index GET|POST    /:model_name(.:format)                 rails_admin/main#index
        new GET|POST    /:model_name/new(.:format)             rails_admin/main#new
     export GET|POST    /:model_name/export(.:format)          rails_admin/main#export
bulk_delete POST|DELETE /:model_name/bulk_delete(.:format)     rails_admin/main#bulk_delete
bulk_action POST        /:model_name/bulk_action(.:format)     rails_admin/main#bulk_action
       show GET         /:model_name/:id(.:format)             rails_admin/main#show
       edit GET|PUT     /:model_name/:id/edit(.:format)        rails_admin/main#edit
     delete GET|DELETE  /:model_name/:id/delete(.:format)      rails_admin/main#delete
show_in_app GET         /:model_name/:id/show_in_app(.:format) rails_admin/main#show_in_app

The below output makes me think that somehow the fullcalendar_engine gem and rails_admin gem we used for authentication/authorization got mixed up? I was at a hackathon when I posted this question and switched back to the fullcalendar gem after I couldn't get fullcalendar_engine to work. Unfortunately, we didn't get the calendar to work before the hackathon ended.

ehannes commented 8 years ago

Did you run mount FullcalendarEngine::Engine => "/fullcalendar_engine" in your console? (mount is a UNIX command to mount a hard drive and you got an error from bash saying that you do not have permission to mount anything). This mount thing above should go into your config/routes.rb file. Something like this:

Rails.application.routes.draw do
  # a lot of routes declared...

  mount FullcalendarEngine::Engine => "/fullcalendar_engine"
end