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 Byrne 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,

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.