AmateurCoder wrote in post #1095172:
> I managed to get this to work. I used the fixture name instead of the
> rigid
> foreign key id in the capability_test.yml fixture.
>
> Thus,
>
> #fixtures
> capability_types.yml
> one:
>   name: MyString
>   capability_category: one
>
> two:
>   name: MyString
>   capability_category: one

Glad you got it going, but I just wanted to recommend you take a serious 
look at move away from fixtures to factories instead.

https://github.com/thoughtbot/factory_girl_rails

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to