Replaced edit form_tag with form_for.
Since form_for, unlike form_tag, wraps up all the form data in a sub-hash within the params hash, we need to modify the logic in the update method to drill one extra level down.