Forum: Ruby on Rails relationships in text fixtures

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Timothy J. Wood (Guest)
on 2006-01-05 10:05
(Received via mailing list)
I'd like to be able to do something like:

--- x.yml ---
x1:
   id: 1
   ...

--- y.yml ---
y1:
   id: 1
   x_id: <%= xs(:x1) %>   # Instead of hard coding '1'


   but I haven't found a way to make it work yet.  Is this even
supported?  Any hints?  :)

-tim
This topic is locked and can not be replied to.