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