Forum: Ruby on Rails relationships in text fixtures

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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 ---
   id: 1

--- y.yml ---
   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?  :)

This topic is locked and can not be replied to.