Welcome to the Treehouse Community
Looking to learn something new?
Generating the Devise Views
Generating the Devise Views:
When I'm in the App/Models/user.erb my code stops working when I add the following code:
# Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :profile_name # attr_accessible :title, :body end
I get the following error message:
attr_accessible is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add
protected_attributes to your Gemfile to use old one.
So I added the 'protected_attributes' gem to my Gemfile. This installed fine. However I'm still getting the same error message. Does anyone know how I could resolve this?
Brandon Barrette20,485 Points
Use Rails 3.2 like the videos or learn about strong parameters in Rails 4.