未定义的局部变量或方法`edit_user_registration_path'

时间:2014-11-06 11:47:33

标签: ruby-on-rails ruby-on-rails-3 security devise

我想允许用户更改密码。当我给出下面的链接时,它给出了未定义的局部变量或方法`edit_user_registration_path'的错误。

<li><%= link_to 'Change Password', edit_user_registration_path %></li>

我的路线:

 Rails.application.routes.draw do
  devise_for :dashboard_users
  resources :vendors
  resources :dashboard_users
  resources :assessments
  resources :projects
  resources :release_cycles
  resources :home
  resources :project_vendor
  resources :project_maturity_score_views
  resources :project_maturity_scores do
  collection do
    get :plan
    get :develop
    get :test
    get :release
    get :operations
    post :plan
    post :develop
    post :test
    post :release
    post :operations
  end
end

  get '/dashboard' => 'home#dashboard', :as => 'dashboard_users/sign_in'

  #get 'release_cycle/vendor_search'

  match '/release_cycles/new' => 'release_cycles#new', via: [:get, :post]
  match '/assessments/new' => 'assessments#new', via: [:get, :post]


    as :dashboard_users do
      get 'dashboard_users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'    
      put 'dashboard_users/:id' => 'devise/registrations#update', :as => 'user_registration'            
    end

0 个答案:

没有答案