Displaying 1 result from an estimated 1 matches for "find_all_by_spam_id".
2006 Dec 23
0
:through => 'this', :that => acts_as_tree?!
...om 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 insights to lead a poor blind man out of darkness would be nice.
(please excuse the dramatic last statement)
--
Posted via http://www.ruby-...