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 trial

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.