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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.