7.5 Update a destination I : (use form_for) Error


Hello there,

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">

<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" %> 
    <% end %>


... and

Here's The Error As I See It :

Please advise and thank you in advanced.


Wow! I wish I could delete this post all together, but after three days I finally isolated my ridiculous user error. I had a typo in my "form_for (parameters)", thats why it was returning nil.

On Line 12 It Should Be :

<%= form_for(@destination) do |f| %>


<%= form_for(@desination) do |f| %>


This topic is solved.