Web Development

There a number of ways to update a field in ActiveRecord. update_attribute and update_attributes are about the most used of them all.

Without checking any of the documentation, Update attribute and update_attributes are very similar with update_attribute being used for a single field and update_attributes for multiple fields.

But there’s a really really important difference to remember is that validations are skipped when you used update_attribute