我已经覆盖了设计的会话控制器和注册控制器,并给出了自定义路径。我在过去的几个项目中一直在这样做,并且工作正常,我不知道为什么我现在收到此错误。
以下是路线:-
devise_for :users, :controllers => {:sessions =>
"sessions", :passwords => "passwords", :registrations =>
"registrations"} do
get "signup", :to => "registrations#new"
get "login", :to => "sessions#new"
post "login", :to => "sessions#new"
get "logout", :to => "devise/sessions#destroy"
end
这些路线以前有效,有人可以帮忙吗?