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.
On Thu, Mar 15, 2012 at 10:35 AM, dwormuth
<dwormuth-cIpcPs7DjqbWs/AcZQh2Cw@public.gmane.org>wrote:
> 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?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.