Excuse me for maybe being naive, this is my first time using StackOverflow and I'm trying to learn ruby. I'm making an application through onemonthrails.com's tutorial that is similar to pinterest. I'm trying to add a pin and I keep getting the error:

NoMethodError in Pins#new

Showing /Users/jake/code/omrails/app/views/pins/\_form.html.erb where line #5 raised:

undefined method `description' for #
Extracted source (around line #5):

I dont know what all will help you answer the question so I'll post all the files I received (that may be relevant to the question) when I ran the following command:
$ rails generate scaffold Pins

the migration file:

```
class CreatePins < ActiveRecord::Migration
  def change
    create_table :pins do |t|
      t.string :description

      t.timestamps
    end
  end
end

```

the model:

```
class Pin < ActiveRecord::Base
  attr_accessible :description
end

```

\_form.html.erb: (This is where it found the error)

```
<%= simple_form_for(@pin) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :description %>
  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>

```

new.html.erb: (this is "trace of template conclusion")

```
<h1>New pin</h1>

<%= render 'form' %>

<%= link_to 'Back', pins_path %>

```

I don't understand the error because I thought the method was defined in the model under attr\_accessible :description

I'd appreciate your help if you can understand anything i just said. If not thanks for taking the time to look at it.