Topic: Can't mass-assign protected attributes
I am using rails 3.2.3 with Ruby 1.9.3p125.
I understand Rails has added security to protect against a mass-assignment problem.
Unfortunately, it breaks my app and I can't make it go away.
As per the documentation and other posts, I have done the following:
-Turn white list off: added config.active_record.whitelist_attributes = false to application.rb
-Made all of the attributes available for updating: added attr_accessible followed by a list of all attributes to the child model's active record class.
-Also added "include ActiveModel::MassAssignmentSecurity" to the child models class.
But I still get the error "Can't mass-assign protected attributes: TcDatum_attributes"
Is there any way to turn off whatever is producing this error, at least for testing purposes?
Thanks for any help. --Fred