dump in yaml & unexpected result

S

Siratinee Sukachai

I have a Hash which value is Array of Hashes. And I expected to generate
the yaml like this:

---
Session:
singular: Session
email: Email
password: Password
rememberMe: Remember Me!


But when I use dump method to generate yaml file and the result is:

---
- Session:
- singular: |
Session

- email: |
Email

- password: |
Password

- rememberMe: |
Remember Me!


When I print out my hash on command line, it look like this:

SessionsingularSession
emailEmail
passwordPassword
rememberMeRemember Me!


What do you think? Am I wrong with any steps?
If I need to generate yaml look like above, how can I do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top