> Why not just subclass?
I like that approach. It was essentially what I was playing with when
I submitted my original post. The problem with it seems to be that I
can't reference the subclass. Extending your example, I would like to
say something like:
clients=Client.find(:all)
Rails doesn't like that. It complains that Client is an uninitialized
constant. It appears that Rails wants me to say something like:
clients=Person.find(:all)
IOW, it appears that Rails wants the name of the class to correspond
the base name of the model file (i.e., since the name of the model
file is person.rb, it wants the class to be Person). Without that
correlation, I get the uninitialized constant error. I'm not sure how
to get around the problem. If I could; then, I think your suggestion
would work just fine.
Thanks.
... doug
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---