On 10/22/07, John Barnette <[EMAIL PROTECTED]> wrote:
>
> All,
>
> I've recently extracted a plugin that significantly improves (well, I
> hope) fixtures. I'd originally written it as a backwards-compatible
> patch, but I'd like to get some comments on the approach before I
> shove it into Trac.
>
> I tossed it out on #rails-contrib, and bitsweat thought it might
> benefit from a larger audience. Major benefits include constant
> generated ID's, specification of belongs_to/has_one associations by
> label, and the total obliteration of HABTM join table fixtures. Kindly
> pile on the comments. :)
>
The syntax is great! But this defaults thing is difficult to remember
DEFAULTS: &DEFAULTS
created_on: <%= 3.weeks.ago.to_s(:db) %>
first:
name: Smurf
<<: *DEFAULTS
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---