DEVISE RAILS 3 Problem
edit: i tried different devise versions: 1.2.1, 1.2.rc2 and 1.1.8...
i use in development: -ruby 1.9.p0 -rails 3.0.1
my routes are:
...
devise_for :users
resources :users
...
namespace :admin do
devise_for :admins, :module => "devise", :controllers => { :sessions => "admin/sessions" } do
get "logi开发者_开发问答n", :to => "admin/sessions#new"
get "logout", :to => "admin/sessions#destroy"
end
resources :admins
end
...
on production enviroment i use ruby 1.9.2p180 and devise is routes are broken... Only admin routes gets generated, user-routing is out of contact... Can someone help me please? server is passenger with apache2.
I think you can not declare users two times you should remove resources :users
you can declare users in namespace.
精彩评论