Model-update_attribute & update_attributes

Presently it seems lot of people are confusing between the functionality of update_attribute and update_attributes. The purpose of these functions can be understood from their name itself. the first one update_attribute would update a single attribute of the model Its used as

and the later update_attributes updates a whole set of values in the…