Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Simple Ruby on Rails Application Customizing Forms Getting the Latest Changes

Kevin Egstorf
Kevin Egstorf
26,590 Points

app isn't working anymore when i want to post an new comment

i hope someone can help me, when i start the local server my app isn't working anymore and i do not know how to fix it in the localhost it says:

NoMethodError in Statuses#new undefined method `name' for #<Status:0x007fdb25e199e0>

<div class="field"> <%= f.label :name %><br> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :content %><br>

2 Answers

Brandon Barrette
Brandon Barrette
20,485 Points

You are using Rails 4 and the videos use Rails 3. There are some major changes to Rails 4 that cause many errors if you just follow the videos with no changes.

Please read through this, someone wrote instructions of what to do:

https://teamtreehouse.com/forum/attraccessible-missing-in-rails-4-heres-the-workaround-for-the-treebook-tutorial

I also recommend you do the ODOT project first (the newest Rails videos). They follow Rails 4. Then once you have a handle on Rails, you can work through the Treebook application and understand what's happening a little more.

Kevin Egstorf
Kevin Egstorf
26,590 Points

Hi Brandon,

tnx for the help!