> mike_user:
  >    id: 2
  >    account_id: <%= fixture :accounts, :elevatedrails%>


The fixture_reference plugin reuses a syntax we already know in Rails:

  <%= fixtures :accounts %>
  mike_user:
     id: 2
     account_id: <%= accounts(:elevatedrails) %>

I find that more readable.

Alain
http://blog.ravet.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to