search for: local_guy

Displaying 1 result from an estimated 1 matches for "local_guy".

2007 May 21
2
Rails'' fixtures suck! But what about something like this?
...ture_name) method 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 add...