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

Marco Roman
Marco Roman
5,527 Points

Creating An Authentication System Login Error

I've followed the video set very closely and I am sure that my code is the same as Jason's, but every time I migrate, check the routes and start my rails server to create a new user , I am greeted with an error of:

https://gist.github.com/marcoroman89/6099031

Aimee Knight
Aimee Knight
9,701 Points

What version of Rails are you on?

Marco Roman
Marco Roman
5,527 Points

Aimee,

I am running ruby 1.9.3p392 and rails (3.2.12)

Aimee Knight
Aimee Knight
9,701 Points

Unless you're positive you set those attributes as attr_accessible in user.rb I'm not sure why that error is happening. I'll be curious to know the outcome.

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

I think Aimee Knight is right. Can you paste your user model here?