Question

I have a profile page in my project. I want to make a custom edit page...In which i can change password as well as user image and other stuffs using DEVISE gem. How should i do this. All i have now is an edit button in my profile page. I'm not so experienced in Ruby, so i have so many doubt regarding this. 1) Should i make a new html page for this? 2) How to update the password in controller? 3) Will it affect the signup page or anyother pages if i make changes in the default edit page of Devise.

Pls Help

Was it helpful?

Solution

Devise just handles the authentication -- it doesn't care how you edit the attributes on its associated model, as long as its columns are present

If you've added an image attribute, and other elements, to the user model - you may wish to use something like this tutorial to help your users edit their respective attributes

I could give you some code if you want

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top