It looks fine. ERB is allowed in YAML files and will be evaluated when the
fixtures are loaded. So Time.now would represent the fixture load time, not
the time when called. Are you having some sort of problem with it?
Rob Kaufman
On 8/24/07, eggie5 <eggie5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Is there anything invalid about this? It''s one of my fixtures...
>
> c_waiting:
> id: 2
> birth: <%= Time.now %>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---