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

sign up issues rails

I am currently working on the build a simple ruby on rails app. I am at the point where i can get the users/sign_up page, however whenever i hit sign up, i get this error:


    Can't mass-assign protected attributes: email, password, password_confirmation

    {"utf8"=>"?",
     "authenticity_token"=>"yEcNIsbuzGc44hS+T19eq/YOTB8BSbv1g2GG8luDL+4=",
     "user"=>{"email"=>"joererser@gmail.com",
     "password"=>"[FILTERED]",
     "password_confirmation"=>"[FILTERED]"},
     "commit"=>"Sign up"}

Any ideas?

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

In your User model, type in the following:

attr_accessible :email, :password, :password_confirmation

We work through it in the videos, hope that helps!