title: Rails not parsing a valid YAML file
body: <p>I'm trying to parse the following YAML with my Rails (3.2.7) application</p>
  
  <pre><code>---
  main-menu:
    - mitem: Test1
      controller: user
      action: test
    - mitem: Test
      controller: user
      action: test2
      - mitem: Test3
        controller: user
        action: test
  </code></pre>
  
  <p>Unfortunately straight when I load my file</p>
  
  <pre><code>    require "yaml"
      @menu = YAML.load_file(file)
  </code></pre>
  
  <p>I get an error </p>
  
  <pre><code>Psych::SyntaxError in User#test
  
  Showing /srv/http/fiss/app/views/layouts/application.html.haml where line #12 raised:
  
  (/srv/http/fiss/app/assets/yaml/menu.yaml): did not find expected key while parsing a     block mapping at line 6 column 5
  </code></pre>
  
  <p>I'm new to Rails (and YAML), however I have checked the code with <a href="http://yamllint.com/" rel="nofollow">YAML Lint</a> and apparently the YAML code is valid. What's causes this?</p>