I have a controller with a couple of actions and one model.
The model is as so:
validates_presence_of :name, :email, :name
validates_presence_of :password, :password_confirmation
The first action is create and is called by the administrator.
With this action I do not want to validate the password as this is created automatically.
The second action allows the user change their password.
With this action I do not want to validate the email, as there is no need.
However the problem lies in the fact that the Administrator can also change the name and email.
Therefore I am unable to use the :on => create or :on => update, as password validation is required on update for the user,
while email and name validation is required on update and create by the administrator. Quite the pickle! Is there a way of
restricting validation to a controller/action? Therefore I can avoid calling certain validations at certain actions?