title: Latest Rails 3: ActionView::Template::Error (couldn't parse YAML at line 105 column 13)
body: <p>I have recently encountered into a weird problem or Rails 3, possibly ever since the new rubygems 1.5 update. Basically when I deploy my program to nginx with passenger 3.0.2, I have 500 page immediately and problems like this in my production log:</p>
  
  <pre><code>
  ActionView::Template::Error (couldn't parse YAML at line 105 column 13):
      10: &lt;/div&gt;
      11: &lt;% end %&gt;
      12: &lt;div class="field"&gt;
      13:     &lt;%= f.label :name %&gt; &lt;%= f.text_field :name %&gt;
      14: &lt;/div&gt;
      15: &lt;div class="field"&gt;
      16:     &lt;%= f.label :password %&gt; &lt;%= f.password_field :password %&gt;
    app/views/sessions/new.html.erb:13:in `block in _app_views_sessions_new_html_erb___4159562374589718885_19217640_4456777064017176818'
    app/views/sessions/new.html.erb:5:in `_app_views_sessions_new_html_erb___4159562374589718885_19217640_4456777064017176818'
  
  </code></pre>
  
  <p>It looks like it's missing something in the environment and so it can't recognize all of my form_for elements. Basically the page is just a simple login page with 2 fields - name and password. This problem also happens for other pages with forms, but only in production environment. In development environment, it's totally working fine. I have upgraded all my gems to the latest version, including rails 3.0.4, which however looks like not quite related to this problem. I also used to deploy the same thing onto the ubuntu on my VMware BEFORE gem 1.5, everything is still fine now, however there's no turning back for the new deployments.</p>
  
  <p>I have deployed this to 2 machines running latest ubuntu, and both machine have such errors. Nginx and passenger are installed with the standard steps. Obviously with this problem the site can never run. Can anyone provide any bug fix for this? Thanks very much if you could!</p>
  
  <p>PS: the login page I wrote is basically from here:
  <a href="http://railstutorial.org/chapters/sign-in-sign-out#top" rel="nofollow">http://railstutorial.org/chapters/sign-in-sign-out#top</a></p>