[英]ActionController::RoutingError - uninitialized constant ApplicationController::CanCan:
我無法加載上述錯誤的應用程序。
route.rb文件為:
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"
看來您的應用程序控制器中存在問題。 您可能具有CanCan寶石的定義,但在當前寶石列表中沒有該定義。
如果您的gem列表中確實有cancan,那么在應用程序控制器中如何配置cancan可能存在問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.