I want customize a user "edit profile" page in Devise. In particular, I want to disallow a user to edit their email address. I can't find that kind of information in their wiki. How can I do that?
2 quick answers:
You could just create your own controller and views to update profile information. I'd assume there might be more fields related to a user profile than just those related to devise.
Run rake routes
to check what routes devise has given you already. You may already have the views to do this, and just not know it.
Run $ rails generate devise:views -v registrations
to copy their views over to your application.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.