search for: more_spam_id

Displaying 1 result from an estimated 1 matches for "more_spam_id".

2006 Dec 23
0
:through => 'this', :that => acts_as_tree?!
Hi guys. was wondering, how would i access the various parents/nodes in an acts as tree, if that model is from a join model using :through? wa huh? ok.. Say my join class model is called "Crap" and there are two columns with foreign keys: spam_id and more_spam_id. Say the Spam class is an acts_as_tree.. I would hope we would be able to access it like we would a habtm: foo = Crap.find_all_by_spam_id 23 bar = foo.parent.find :all but it seems these acts_as_tree methods are not avail when using :through..(or do I need a break and realize something?) Any...