1

我有一个设计网站。我安装了 ActiveAdmin 并将其删除。
现在我的完整路径列表是

rake routes
    new_user_session GET    /users/sign_in(.:format)               {:action=>"new", :controller=>"devise/sessions"}
        user_session POST   /users/sign_in(.:format)               {:action=>"create", :controller=>"devise/sessions"}
destroy_user_session DELETE /users/sign_out(.:format)              {:action=>"destroy", :controller=>"devise/sessions"}
       user_password POST   /users/password(.:format)              {:action=>"create", :controller=>"devise/passwords"}
   new_user_password GET    /users/password/new(.:format)          {:action=>"new", :controller=>"devise/passwords"}
  edit_user_password GET    /users/password/edit(.:format)         {:action=>"edit", :controller=>"devise/passwords"}
                     PUT    /users/password(.:format)              {:action=>"update", :controller=>"devise/passwords"}
                root        /                                      {:controller=>"codes", :action=>"list"}
                            /:controller(/:action(/:id(.:format)))

设计 wiki中没有类似new_user_registration_pathor的路径。 我怎样才能恢复该链接? edit_user_registration_path

4

1 回答 1

2

您是否使用正确的选项配置了您的用户模型(或您正在使用的任何模型)。见https://github.com/plataformatec/devise#configuring-models

你可能错过了:

devise :registerable
于 2013-01-10T05:36:00.710 回答