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?
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)
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