As far as I know there is not.
I would really like that, though.
or:
order:
id: 1
person: :john # defined on the people fixtures
Pupeno wrote:> Hello,
> Is there some way to access other fixtures'' records by name in one
> fixture ?
> I have a complex set of relationships and I''d like to be able to
do:
> order:
> id: 1
> person: persons(:john) # defined on the people fixtures
>
> instead of
> order:
> id: 1
> person_id: 1 # john
>
> Is that possible ?
> Thank you.
--
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 post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---