devise 1.4.7 不生成路由
我已经使用该设备有一段时间了。突然,当我运行“rake 路线”时,我没有设备控制器的路线。发生了什么?我需要恢复到设备的早期版本吗?如果是这样,我该如何实现这一目标?
路线.rb:
NbbApp::Application.routes.draw do
resources :products
resources :categories
devise_for :users, :controllers => {:registrations => "users/registrations"}
root :to => "home#index"
end
I have been using devise for sometime now. Suddenly, I have no routes for devise controllers when I run 'rake routes'. What happened? Do I need to revert to an earlier version of devise? If so, how do I accomplish this?
routes.rb:
NbbApp::Application.routes.draw do
resources :products
resources :categories
devise_for :users, :controllers => {:registrations => "users/registrations"}
root :to => "home#index"
end
你尝试过吗?
Have you tried?