Move the fields_for :tasks call in _form.html.erb to its own partial.