Routing Error
uninitialized constant AccountsController Try running rake routes for more information on available routes.
<%= render_list :class => "dropdown-menu" do |li| li << link_to("登出", destroy_account_session_path, :method => "delete") end %>
我已经尝试在 method 里面加入了 delete 了 这个是我的路由 new_account_session GET /accounts/sign_in(.:format) devise/sessions#new account_session POST /accounts/sign_in(.:format) devise/sessions#create destroy_account_session DELETE /accounts/sign_out(.:format) devise/sessions#destroy account_password POST /accounts/password(.:format) devise/passwords#create new_account_password GET /accounts/password/new(.:format) devise/passwords#new edit_account_password GET /accounts/password/edit(.:format) devise/passwords#edit PUT /accounts/password(.:format) devise/passwords#update cancel_account_registration GET /accounts/cancel(.:format) devise/registrations#cancel account_registration POST /accounts(.:format) devise/registrations#create new_account_registration GET /accounts/sign_up(.:format) devise/registrations#new edit_account_registration GET /accounts/edit(.:format) devise/registrations#edit PUT /accounts(.:format) devise/registrations#update DELETE /accounts(.:format) devise/registrations#destroy
我试过建立一个 controller 继承 Devise::RegistrationsController 但会出现其他错误