Introduced bugs for debugging practice. Don't peek
Fixed the bugs.
Added a route to show a user a form to add a new picture.
Defined the new_picture_form action.
Made the new_picture_form view template.
Added form tag, input fields, and submit button.
Added some labels to HTML.
Added a route to handle form submission.
Defined insert_picture action.
Added a route to show the user a form to edit a picture.
Defined edit_picture_form action.
Made edit_picture_form view template. The heading still needs the ID number of the requested picture.
Set up the @pic_id instance variable in the action using the dynamic route segment.
Copied the form HTML from the new action, added hardcoded default values for the input fields.
Inserted embedded ruby to replace hardcoded default values with dynamic data from the database. The @pic variable still doesn't exist.
Set up the @pic instance variable in the action by asking the Picture table for the appropriate row.
Added a url for the form to send its data to.
Added support for the edit form's URL.
Defined the update_picture action to process the form data.
Re-organized routes file.