ActiveModel::MassAssignmentSecurity::Error

I get this message from setting
config.active_record.mass_assignment_sanitizer = :strict in my
development.rb file.

Is the purpose of this
config.active_record.mass_assignment_sanitizer = :strict statement to
essentially block all mass assignments?

Ahmy Yulrizka

I don’t hink so,
config.active_record.whitelist_attributes = true

forces that every model should have attr_accessible.

but if I’m not mistaken, config.active_record.mass_assignment_sanitizer = :strict

sets that if there is mass assignment, it throws an error. comment it will set the behavior to silently ignore if there is mass assignment.