I’m trying to create a new user and after clicking “Create User” button, I get the following message:
ActiveModel::MassAssignmentSecurity::Error in UsersController#create Can't mass-assign protected attributes: name, password, password_confirmation
class User < ActiveRecord::Base validates :name, presence: true, uniqueness: true has_secure_password end
All my code was taken from eBook. What can be wrong with it?