You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using Rails 4 you'll stumble on a problem in the section "Modify the User Model". Adding the line attr_accessible :name, :email, :password, :password_confirmation, :remember_me will cause:
`attr_accessible': `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. (RuntimeError)
To know why, read this. In short, to correct the problem, delete this line from app/models/user.rb and add this code to app/controllers/application_controller.rb:
If you are using Rails 4 you'll stumble on a problem in the section "Modify the User Model". Adding the line
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
will cause:To know why, read this. In short, to correct the problem, delete this line from
app/models/user.rb
and add this code toapp/controllers/application_controller.rb
:More info about this here.
The text was updated successfully, but these errors were encountered: