I seem to be having an issue here and I would greatly appreciate it if someone could lend a hand. Perhaps even give some enlightenment as to why this
First argument in form cannot contain nil or be empty error keeps happening.
The Instructions Are As Follows :
In app/views/destinations/edit.html.erb inside <div class="container">...</div>, use form_for to create a form with the fields of the @destination object.
My Code :
<div class="header"> <div class="container"> <img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80"> <h1>BokenjiKan</h1> </div> </div> <div class="destination"> <div class="container"> <%= image_tag @destination.image %> <%= form_for(@desination) do |f| %> <div class="field"> <%= f.label :Destination %> <br> <%= f.text_area :name %> <br> <%= f.text_area :description %> <div class="actions"> <%= f.submit "Update" %> </div> <% end %> </div> </div>
Here's The Error As I See It :
Please advise and thank you in advanced.