Forum: Ruby on Rails :attr_accessible to protect all attributes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fernando P. (Guest)
on 2008-12-28 18:14

I would like to protect all the attributes of one of my model. This
ticket talks about this issue: ,
and a patch to the documentation was submitted: , which actually states that
defining :attr_accessible alone, means all attributes are protected.

However when I look at the rails API page for attr_accessible, I can't
find the documentation about that:

As of Rails 2.2.2, how do I protect all attributes of my model?

Best regards,
This topic is locked and can not be replied to.