I haven’t done any associations before, so please forgive my incorrect
use of terminology…
If I set up a has_many :through association, can I manipulate the
associated instances directly (like an Array), or do I need to
manipulate the join model?
For example, suppose I have two classes and the associated join model:
has_many :bars, :through => :foo_bars
has_many :foos, :through => :foo_bars
If I have an instance of foo and an instance of bar, how do I add the
association between the two of them?
my_foo.bars << my_bar
my_bar.foos << my_foo
or do I somehow need to manipulate the join model explicitly?