Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Nano Meko
Nano Meko
1,838 Points

Ruby Section 4 Error

Hello,

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

Rails.root: /Users/N/Documents/projects/web/treebook

3 Answers

Paul Dietrich
Paul Dietrich
4,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 Gascard
Julien Gascard
12,818 Points

Hi guys,

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.

Paul Dietrich
Paul Dietrich
4,557 Points

Thanks for the post. Hope it works!