I am trying to do exercise 2 for Rails Scaffolding. I made all the
changes and this is the error I get...


 NoMethodError in Posts#new

Showing app/views/posts/new.html.erb where line #13 raised:

undefined method `body' for #<Post id: nil, title: nil, created_at:
nil, updated_at: nil>

Extracted source (around line #13):

10:
11:   <p>
12:     <%= f.label :body %><br />
13:     <%= f.text_area :body %>
14:   </p>
15:
16:   <p>



I did add all the extra code as required. Is anyone else getting this
error? How should it be resolved?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to