Update and Delete
Explore how to update and delete Active Record objects in Ruby on Rails. Understand methods to modify attributes, save changes, and remove records from your database. This lesson builds your ability to manage data dynamically within Rails applications.
Now that you know how to create and retrieve Active Record objects, you can learn how to make modifications to them.
Currently, your database looks like this:
Note: We omit the
created_atandupdated_atattributes since they are managed internally by Rails/ Active Record.
Update
You will notice that you have capitalized the names for all pets except the pet with the name ...