Devise is very powerful, but I am struggling to get it to do what I want
I’m very new to rails so please forgive any stupidity in the below.
I followed the instructions on:
– because I don’t want users to have to enter their current password
every time they edit their user info (I store much more than just
email/login details in the user object.
and also:
I got it working by doing two additional things, first in routes.rb:
“I had to copy my
devise/registrations views out to just views/registrations.”
did you do that in the gem? because you are suppose to use rails g
devise_views to do that
to edit without requiring a password put this in your user model
def password_required?
self.new_record?
end
Thanks for your reply.
That’s the whole problem, just
def password_required?
self.new_record?
end
Does not work. See
You have to make a change to the registration controller, which means
copying it yourself, hence my problems above. Going around in circles on
this, really frustrating.