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

Building rails app - creating authentication system

get error message for " undefined method `name' " after launching rails server

5 Answers

Jody Albritton
PLUS
Jody Albritton
Courses Plus Student 5,497 Points

Somewhere in your code a request is being made to "something.name". This message means that .name is undefined. Did you mean username?

@Jason Tran - definitely give what @Jody Albritton suggested you try a whirl. If it doesn't work for you mind taking a screenshot of the error and shoot me an email directly at help@teamtreehouse.com and I'll see what the teaching team suggests ^^

Creating an authentication system. Are you using Devise?

Gonzalo Vázquez
Gonzalo Vázquez
5,507 Points

Hello,

I am receiving the same error.

NoMethodError in Statuses#new

undefined method `name' for #<Status:0x007f1450b5fc50>

I followed the tutorial until Build a Simple Ruby on Rails Application > Creating an Authentication System > Migrating Statuses. After launching my rails server and trying to post a new status I receive the error message above.

Any help would be appreciated.

Thank you.

I, too, am receiving the same error!

Please advise.