Thanks for your responses.  Before I posted this question, I looked at
awesome_nested_set.  But I have two problems with it: (1) my entire
application is largely a tree, but the nodes are of different classes
at different levels, and the nested sets need all nodes to be of the
same or a derived type, (2) the tree here is almost always flat,
making the nested set solution way overkill.  So I'm just looking to
understand whether there's a bug here or I'm misunderstanding how RoR
handles a self-referential belongs_to association.

Specifically, I'd like to know why

an7 = an8.asset_node

Didn't actually return the object that an8.asset_node refers to?

-Russ
--~--~---------~--~----~------------~-------~--~----~
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