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 Y.

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs