Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

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.