I have a text field in a database that I would like to populate with
some data. In my fixture yaml file I’m trying to read in the file as
an entry, but rails barfs on it.
Here’s what it looks like:
manifest: <%= File.read(‘MANIFEST’).to_yaml %>
The ‘MANIFEST’ file is a plist (a type of xml). The AR::read_fixtures
method barfs and complains that the yaml file requires a specific
kind of format.
Anyone know how to correctly read in a file inside a fixture to
populate a text field? Thanks