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 trialc song
4,296 PointsCustomizing Forms: undefined method `user_name' for #<>
Hi, I'm having a small problem I'm hoping someone could help with. After working through the 'Creating an Authentication System' exercise for treebook, I'm finding that I encounter the following error when trying to post a new status: 'undefined method `name' for #<Status:0x007faad53aedf0>'. The error is emanating from the /app/views/statuses/_form.html.erb file with the line of code '<%= f.text_field :name %>' My GitHub repository URL is https://github.com/csunsong/treebook.git. Any ideas? Thanks!
2 Answers
c song
4,296 Pointsissue resolved
c song
4,296 PointsHi Josh, it appeared I had some sort of issue with my database migration. Try making sure all your databases are up to date then run rake db:migrate
.
Josh Flowers
7,010 PointsJosh Flowers
7,010 PointsHey, I'm having the same problem. How did you fix it?