When using the Devise gem, by default the user edit path falls under /signup/edit or /registration/edit. How can we change this to /username/edit? I have already updated the user profile url using FriendlyID to use the username.
Yes, you can change the edit devise paths as follows, Devise provides to override its current path names.
devise_for :users do
get ':user/edit-profile' => 'devise/registration#edit', :as => :edit_user_profile
end
your link will be like
edit_user_profile_path(current_user)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With