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 trialNoMethodError RoR
I have been working through the "Build a Simple RoR App" and have hit a snag. I made it through Creating an Authentication System. After completing the section, I went to check the app functionality. When trying to create a new status update, I get the following error:
NoMethodError in Statuses#new
Showing /Users/scottyrunyan/Desktop/Projects/treebook/app/views/statuses/_form.html.erb where line #16 raised:
undefined method `name' for #<Status:0x007f9e8d681770> 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 />
Any help would be greatly appreciated.
2 Answers
Mike Graham
3,325 PointsI ran into the same issue. Keep watching the videos. They'll show you how to fix that error.
Thanks. I'll keep at it.
Edit: The very next video explained it. Thanks for the help.