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

after db:migration in devise

I can't create a new status...not making sense. I tried this twice on 2 projects and when i reach this I can't ever get past simple_forms. NoMethodError in Statuses#new

Showing /Users/ernestonunez/ruby-projects/sitedigo/app/views/statuses/_form.html.erb where line #16 raised:

undefined method `name' for #<Status:0x0000010174f1b0>

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/ernestonunez/ruby-projects/sitedigo Application Trace | Framework Trace | Full Trace

app/views/statuses/form.html.erb:16:in `block in _app_views_statusesform_html_erb658416182291022963_2154210800' app/views/statuses/_form.html.erb:1:in `_app_views_statusesform_html_erb658416182291022963_2154210800' app/views/statuses/new.html.erb:3:in `_app_views_statuses_new_html_erb_2762668336712485720_2155236100' app/controllers/statuses_controller.rb:29:in `new'

Request

Parameters:

None

Show session dump

Show env dump Response

Headers:

None

3 Answers

I've got the same problem!

I also have the same problem. I have completed all the videos up to this point twice now with the same output you describe above when I try to add a new status. I have saved my project files in increments all the way to the db:migrate command when it all stops working. I would like to be able to move on and complete the rest of the training.

No help?