Look into the :as and :source options for the has_many and belongs_to
associations, they should be able to do what you need.

Good luck!

On Oct 7, 5:53 pm, David Hill <[EMAIL PROTECTED]>
wrote:
> I'm fairly new to Ruby on Rails, and am having trouble figuring out how
> to do this.  I have a model called Organization.  I want to set things
> up so that an org can have sub-orgs (which can have sub-orgs
> themselves).
>
> Can anyone point me to a good example or explanation (or provide one
> directly) so I can get an idea of how to do this?
>
> Thanks!
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to