I want to create a fixture that has multiple lines of text as one of
the fields. Some of the lines start with “text:” Something like:
article:
subject: Article
content: This is the content
something: happens here
How can I do that?
I want to create a fixture that has multiple lines of text as one of
the fields. Some of the lines start with “text:” Something like:
article:
subject: Article
content: This is the content
something: happens here
How can I do that?
Pat M. wrote:
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
article:
subject: Article
content: |
This is some multi-line text.
It needs to be consistently indented, but
other than that, you can do pretty much
what you want.
foo: bar
There is an example doc at http://www.yaml.org/start.html.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs