我在菜单中有以下链接:
<li><%= link_to "Change your password", edit_user_registration_path %>
这是我的路线:
devise_for :users
单击链接时,我收到以下路由错误:
No route matches {:controller=>"devise/admin"}
我不明白我做错了什么。
以下是设计路线:
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session GET /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
PUT /users/password(.:format) devise/passwords#update
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
user_registration POST /users(.:format) devise/registrations#create
new_user_registration GET /users/sign_up(.:format) devise/registrations#new
edit_user_registration GET /users/edit(.:format) devise/registrations#edit
PUT /users(.:format)
PUT /users(.:format) devise/registrations#update
DELETE /users(.:format) devise/registrations#destroy