Displaying 1 result from an estimated 1 matches for "zip_id".
Did you mean:
sip_id
2007 May 21
2
Rails'' fixtures suck! But what about something like this?
...hod available straight inside the
fixtures. So, if I have a user model that has a location associated
with it (let''s say a zip code, longitude, and latitude), instead of
having to copy / paste that data across fixtures, I can do the
following:
-------------------------------
local_guy {
zip_id zips(:portland)
longitude zips(:portland).longitude
latitude zips(:portland).latitude
}
-------------------------------
This is much easier to deal with than the other way around. This also
introduces dependencies between fixtures, I thought the easiest way to
handle it would be adding a fixtu...