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
pavey nganpi
1,044 PointsnoMethodError when willing to post a status
hi guys when i want to post a new status, i have the following erro, i dont know why, pls help
NoMethodError in Statuses#new
Showing C:/Users/NEBELYN/Desktop/mybook/mybook/app/views/statuses/_form.html.erb where line #16 raised:
undefined method `name' for #<Status:0x4f11510>
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>
2 Answers
Charles Massry
12,253 PointsCan you post the status.rb user model, and maybe also the db/migrate/_create_statuses.rb file. It probably is in your status model though.
pavey nganpi
1,044 Pointshey,thanks for the concern, but i found the error :)