Erb in yaml

Is there anything invalid about this? It’s one of my fixtures…

c_waiting:
id: 2
birth: <%= Time.now %>

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 K.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs