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!

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


Customizing 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

issue resolved

Josh Flowers
Josh Flowers
7,010 Points

Hey, I'm having the same problem. How did you fix it?

Hi 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.