WARNING: Can't mass-assign these protected attributes:

Hi,

Suddenly all the attributes in all my models have become protected and
I cannot save anything. Of course a solution is to add attr_accessor
for all the atttributes in all the models. But this was not the case
before. All attributes were public.

Any idea how suddenly all attributes becomes protected?
Any idea how I can make all attributes public again?

Please advise

Hi,

Suddenly all the attributes in all my models have become protected and
I cannot save anything. Of course a solution is to add attr_accessor
for all the atttributes in all the models. But this was not the case
before. All attributes were public.

Someone, somewhere is calling attr_protected/attr_accessible on your
model ( a plugin could in theory do this for example)

Fred

Revert to previous versions using your version control system
(hopefully you are using one, git is my favourite) to find out when
the problem was introduced. If you are not using a VCS then now you
know why you should :slight_smile:

Colin

Ya... I found a few "attr_accessible"
Thanks a lot for the help.