简体   繁体   中英

ActionController::RoutingError - uninitialized constant ApplicationController::CanCan:

I can't load my application its giving an above error.

The routes.rb file is:

resources :patients  

resources :clinics

root :to => "home#index"

devise_for :users, :controllers => {:registrations => "registrations"}

resources :users

get '/email_send_message', to: "application#show_mail_send_message"

This looks like there is an issue in your application controller. You may have a definition for the CanCan gem, but not have it in your current gem list.

If you do have cancan in your gem list then there may be an issue with how it is configured in your applicaiton controller

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM