>
> > I am hoping that this is an easy question to answer!
> >
> > I have 2 models, related via an association model, such that models a and
> b use has_many to refer to each other, and also the association.
>
> has_many :through with an extra table, or HABTM?
>
> Im home now and dont have the code
On Feb 22, 2010, at 1:54 PM, Matt Riches wrote:
> I am hoping that this is an easy question to answer!
>
> I have 2 models, related via an association model, such that models a and b
> use has_many to refer to each other, and also the association.
has_many :through with an extra table, or HABT
What I do is to mock and stub the associated models. The current model that
I work on is called, usually using a Factory Girl. Hope this helps.
On Mon, Feb 22, 2010 at 8:54 PM, Matt Riches wrote:
> I am hoping that this is an easy question to answer!
>
> I have 2 models, related via an associati
I am hoping that this is an easy question to answer!
I have 2 models, related via an association model, such that models a and b
use has_many to refer to each other, and also the association.
(Thats as simple as the code is)
When I try to write a simple spec to access model 2 from model 1 I am
g