Defined a method to handle the processing of the new form data.
Wrote some logic to create a new row in the table, pull the form data out of the params hash and populate the blank row with it, save the row, and redirect the user back to the list of all pictures.
Next up: the user should be able to request a form to enter information to edit an existing picture.
Defined a method to handle the form for editing an existing picture request.
Created a template to paint a form for editing an existing picture.
Prepared the data required for the view. We want to pull up the existing information for that picture from the database so that we can pre-populate the form inputs as a convenience for the user.
Crafted a form to edit an existing picture in the edit view template. We want the form, when the Update Picture button is clicked, to send the data to http://localhost:3000/pictures/:id with the HTTP verb PATCH, and set the arguments of form_tag accordingly.
Next up: when the user clicks Update Picture, we need to receive the information from the form and update the corresponding row in the database.
Define a method to handle the processing of edit form data.