2009/8/18 Frederick Cheung <frederick.che...@gmail.com>:
>
>
>
> On Aug 18, 1:10 pm, Ritvvij <ritvi...@gmail.com> wrote:
>> 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
>
>> Any idea how suddenly all attributes becomes protected?
>> Any idea how I can make all attributes public again?

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

Colin

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to