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 trialCheryll Turcotte
963 PointsActiveModel::MassAssignmentSecurity::Error in Devise::RegistrationsController#create
Generating the User Model.
I am using Rails 3.2.12 and when I follow the tutorial Generating the User Model and I create an account it is giving me a Action controller error.
Errors as follows:
Can't mass-assign protected attributes: email, password, password_confirmation
Request
Parameters:
{"utf8"=>"?", "authenticity_token"=>"yS+D885j7jNGNDkjdj4yAvVWS5yHevimStHGU9XJhgw=", "user"=>{"email"=>"useremail", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
1 Answer
Twiz T
12,588 PointsHey Cheryll if I remember correctly they address this issue a little bit later in the series? Keep an eye out for
attr_accessible
for you user model in the videos.
-twiz
Cheryll Turcotte
963 PointsCheryll Turcotte
963 PointsThank you