The My User (Devise) model also has a name, city, nation, phone members.
On the registration creation page - I validates_presence_of city, nation, phone, name, email, :on => :create
On the rights editing page - I validates_presence_of city, nation, phone, name, :on => :update
Now, when I set a new password on the forget_password_page page, it requests the presence of the city, country, phone, name inside Devise::PasswordsController#update
How can I handle spot checks?
I assume this should be something like:
validates_presence_of city, nation, phone, name, :on => :update, :if => :not_recovering_password def not_recovering_password
Rahul source share