How to validations while updating a model?

Dear all,

How to do validations while updating a model using method
update_attributes()?

Thanks in advance.

Regards,
Jose Martin

question your sense make does not.

Validations are ran whenever you update or save a method, unless
you’ve specified otherwise.

dare ruby wrote:

Dear all,

How to do validations while updating a model using method
update_attributes()?

Thanks in advance.

Regards,
Jose Martin

At the time updating or saving any database related operation the
validation will work if not working means see in your rhtml file whether
the your used model objects properly or not if it proper it should
work…