How to test drive rails 4?

As you all know, almost everyone in the rails or ruby community is excited about the upcoming rails 4 and its exciting features. For those who wish to try out the latest release of Rails 4, can do so by following these simple steps Clone the latest code:

move into that directory and install…

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…