# How to create yaml

**URL:** <https://www.ruby-forum.com/t/how-to-create-yaml/123145>\
**Category:** Rails\
**Created:** [December 14, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/how-to-create-yaml/123145 "2007-12-14T12:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjularaj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@manjularaj](https://www.ruby-forum.com/u/manjularaj)\
**Post date:** [December 14, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/how-to-create-yaml/123145/1 "2007-12-14T12:04:01Z")

</div>

Hi,

How can i create yml file to dynamically store data instead of storing  
it in db. I don’t want to create yml file for the purpose of testing as  
it is done in fixtures. What i want to do is to store some of my data  
for my form in to a yml file.

---

<div class="post-metadata">

**Author:** ![manjularaj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@manjularaj](https://www.ruby-forum.com/u/manjularaj)\
**Post date:** [December 14, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/how-to-create-yaml/123145/2 "2007-12-14T13:25:46Z")

</div>

Hi  
U just need to create a file using file class and name it \*.yml and  
store  
whatever u want

ARUN

On 14/12/2007, Manjula R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> >

–

Arun A.

Sent from BlackBerry(R) on Hutch
