Welcome to the Treehouse Community
Looking to learn something new?
Nano Meko1,838 Points
Ruby Section 4 Error
I was about to start section 4 of the ruby on rails course (customizing forms) and I get the following error when I click on create a new status:
oMethodError in Statuses#new
Showing /Users/N/Documents/projects/web/treebook/app/views/statuses/_form.html.erb where line #16 raised:
undefined method `name' for #<Status:0x007feaa6b8ed20> Extracted source (around line #16):
13: 14: <div class="field"> 15: <%= f.label :name %><br /> 16: <%= f.text_field :name %> 17: </div> 18: <div class="field"> 19: <%= f.label :content %><br /> Trace of template inclusion: app/views/statuses/new.html.erb
Paul Dietrich4,557 Points
Wow... I have the exact same problem!
Before this section, I had absolutely no problems. It was only today, when I started this section, that I noticed I was receiving a strange error whenever I tried to make a new post on localhost:3000.
Julien Gascard12,818 Points
Don't worry about that, keep watching and you'll get your answers. You've completely crashed your app during the previous video, and you'll fix it in the next one :D.