class ActiveModel::ForbiddenAttributesError

# => #<Person id: nil, name: “Bob”>
Person.new(params)
params.permit!
# => ActiveModel::ForbiddenAttributesError
Person.new(params)
params = ActionController::Parameters.new(name: ‘Bob’)
end
class Person < ActiveRecord::Base
Raised when forbidden attributes are used for mass assignment.
= Active Model ForbiddenAttributesError