Basically, I want to have two separate actions for changing the password and changing the email address instead of one.
I updated my routes to point to my new controller, which inherits from Devise :: RegistrationsController.
My .rb routes:
devise_for :users, :controllers => { :registrations => "registrations" } devise_scope :user do get "/users/password" => "registrations#change_password", :as => :change_password end
My registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController def change_password end end
My app / views / devise / registration / change _password.html.erb
<%=debug resource%>
Which gives me zero.
What am I missing here?
Thanks!
source share