Rails 4 fullcalendar没有显示

时间:2015-05-03 07:25:18

标签: ruby-on-rails-4 fullcalendar

我正在尝试将日历功能添加到我的rails 4应用程序中。我尝试了下面提到的所有步骤:

  1. 在application.css中: * = require.fullcalendar
  2. 在application.js中: // =要求fullcalendar
  3. 在events.coffee中: $( '#日历')。fullcalendar()
  4. 在index.html.erb中:     
  5. 参考网站:http://blog.crowdint.com/2014/02/18/fancy-calendars-for-your-web-application-with-fullcalendar.html

    我可以创建新活动,但日历不会显示。感谢任何帮助!使用firefox / chrome。

    rake routes:

                  Prefix Verb   URI Pattern                             Controller#Action
                  events GET    /events(.:format)                       events#index
                         POST   /events(.:format)                       events#create
               new_event GET    /events/new(.:format)                   events#new
              edit_event GET    /events/:id/edit(.:format)              events#edit
                   event GET    /events/:id(.:format)                   events#show
                         PATCH  /events/:id(.:format)                   events#update
                         PUT    /events/:id(.:format)                   events#update
                         DELETE /events/:id(.:format)                   events#destroy
          questionnaires GET    /questionnaires(.:format)               questionnaires#index
                         POST   /questionnaires(.:format)               questionnaires#create
       new_questionnaire GET    /questionnaires/new(.:format)           questionnaires#new
      edit_questionnaire GET    /questionnaires/:id/edit(.:format)      questionnaires#edit
           questionnaire GET    /questionnaires/:id(.:format)           questionnaires#show
                         PATCH  /questionnaires/:id(.:format)           questionnaires#update
                         PUT    /questionnaires/:id(.:format)           questionnaires#update
                         DELETE /questionnaires/:id(.:format)           questionnaires#destroy
      questionnaire_info GET    /questionnaire/info(.:format)           questionnaire#info
            leaving_info GET    /leaving/info(.:format)                 leaving#info
    
             useful_info GET    /useful/info(.:format)                  useful#info
        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
                  pages_info GET    /pages/info(.:format)                   pages#info
                        root GET    /                                       redirect(301, /ideas)
                       ideas GET    /ideas(.:format)                        ideas#index
                             POST   /ideas(.:format)                        ideas#create
                    new_idea GET    /ideas/new(.:format)                    ideas#new
                   edit_idea GET    /ideas/:id/edit(.:format)               ideas#edit
                        idea GET    /ideas/:id(.:format)                    ideas#show
                             PATCH  /ideas/:id(.:format)                    ideas#update
                             PUT    /ideas/:id(.:format)                    ideas#update
                             DELETE /ideas/:id(.:format)                    ideas#destroy
    

0 个答案:

没有答案