dimanche 16 septembre 2018

Updating a model with validations Rails 3.2

How do I update a record in rails by making it go through all the necessary validations? As far as i know

record.update_attributes(update_hash) 

will skip all the validations. How do i update my record without skipping the validations? I'm using Rails 3.2 by the way.

Aucun commentaire:

Enregistrer un commentaire