On Tue, Mar 28, 2006 at 09:34:09PM +0200, Wes G. wrote:
Is ActiveRecord going to assume that there is a table behind these guys?
No. ActiveRecord knows what fields are in the table that underlies
the
object, it doesn’t need to assume anything. Besides, the mechanics of
attributes-as-fields is completely different to attr_accessors.
If so, how do I indicate that these attributes are not stored?
You don’t. AR knows all about the table and it’s structure, and will
ignore
any new and shiny instance attributes you may care to play with.
Matt
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.