Note that there are some explanatory texts on larger screens.

plurals
  1. POExtremely rare haml error
    text
    copied!<p>I'm currently trying to deploy an Ruby on Rails 3.0.9 app on a production server. Everything seems to be going fine untill passenger gives an 'We're sorry, but something went wrong.' error upon requesting the website.</p> <p>The production log shows this error:</p> <blockquote> <p>Rendered sessions/new.html.haml within layouts/application (5.7ms)</p> <p>Completed 500 Internal Server Error in 8ms</p> <p>ActionView::Template::Error (syntax error on line 7, col 7: `'):</p> <p>2: %h2 Sign in 3: = form_for( :sessions, :url => sessions_path) do |f|</p> <p>4: .field</p> <p>5: = f.label :email</p> <p>6: %br/</p> <p>7: = f.text_field :email</p> <p>8: .field</p> <p>app/views/sessions/new.html.haml:5:in<br> <code>_app_views_sessions_new_html_haml__1068828667_250539460_0' app/views/sessions/new.html.haml:3:in </code>_app_views_sessions_new_html_haml__1068828667_250539460_0'</p> </blockquote> <p>*<em>Edit: Removing the f.label :email and f.label :password rows makes this error disappear, but this obviously isn't a fix *</em></p> <p>Some information about this error:</p> <ul> <li>I develop with aptana on windows </li> <li>A co-developer who works with this project on a mac, was subject to this error a while ago, but fixed this with some unknown magic with gemsets and rvm.</li> <li>Bundle list of the production server: <a href="http://pastie.org/private/0itpfmbfwqvhpheptqz4ha" rel="nofollow">http://pastie.org/private/0itpfmbfwqvhpheptqz4ha</a></li> <li>Github repository: <a href="http://github.com/boersmamarcel/Into-Reality-Portal" rel="nofollow">http://github.com/boersmamarcel/Into-Reality-Portal</a></li> <li>I'm deploying with capistrano 2.0 and the bundle recipe for it</li> <li>A similar error also happens on other views, but somehow this error also points to line 7 of the file, and the error message sometimes shows random strings after <blockquote> <p>col 7:</li> <li>I can't manage the global gemset on the production server</li> <li>Weird fact: If I remove the = f.label :password and = f.label :email rows, the error is gone :s</li> </ul> <p>I would be <em>very</em> grateful if someone could help me with this. We have been working on this error for the whole day and it's driving me nuts.</p> </blockquote></p> <p>Thanks - Bas</p> <hr> <p>Edit: the f.label function seems to be causing the problem. I uploaded a trimmed down version of the view which generated the following error: <a href="http://pastie.org/private/cqqipdvqod3r50x9ciwytq" rel="nofollow">http://pastie.org/private/cqqipdvqod3r50x9ciwytq</a> This application runs succesfully on other mac-based and windows-based computers.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload