Erb in yaml

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

id: 2
birth: <%= %>

It looks fine. ERB is allowed in YAML files and will be evaluated when
fixtures are loaded. So would represent the fixture load time,
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