I have an object that holds a list and also has one more, separate
object of the same kind:
class Stack ...
has_many :cards, :order => "position", :dependent => true
belongs_to :background_card, :foreign_key =>
"background_card_id",
:class_name => "Card"
...
end
class Card ...
belongs_to :stack
acts_as_list :scope => :stack
...
end
I don''t want the background card to be part of the cards list. How do I
prevent that? (I usually use Stack.find(some_id, :include => [:cards])
to load a stack.)
Jim
--
Jim Menard, jimm-Xhj3G7Rj6JI@public.gmane.org, http://www.io.com/~jimm/
"All those who believe in psychokinesis raise my hand." -- Anon.