Attr_accessible question

Can one vary which attributes are available for mass assignment ? In
other words, if I had this statement in a model

attr_accessible :a, :b:, :c

is there some simple way to later add :d or remove :c?

James B. wrote:

Can one vary which attributes are available for mass assignment ? In
other words, if I had this statement in a model

attr_accessible :a, :b:, :c

is there some simple way to later add :d

Model.attr_accessible :d

or remove :c?

I’m not sure.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On Jan 28, 6:28 pm, Marnen Laibow-Koser [email protected] wrote:

is there some simple way to later add :d

Model.attr_accessible :d

or remove :c?

I’m not sure.

So is attr_accessible is a one-way trip? Is is the case that once an
attribute is added to the attr_accessible collection then there is no
way to remove it? I have already discovered that one may not user
attr_protected if one has already called attr_accessible.