在 routes.rb 中
devise_for :users, :controller => {
:sessions => "users/sessions",
:registrations => "users/accounts"
}
users/accounts_controller中
class Users::AccountsController < Devise::RegistrationsController
layout false
end
users/sessions_controller中
class Users::SessionsController < Devise::SessionsController
def new
layout false
end
end
可是 rake routes 还是
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
自定义 controller 没起作用是什么情况