google-code-export / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

indentation error in line 28 of svn/trunk/app/views/name_strings/show.html.haml #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to
http://[bibapp-install/name_strings/[any-name_string-not-attached-to-person]
2.
3.

What is the expected output? What do you see instead?
I get the error below. Outdenting lines 28-29 by two spaces fixes the problem.
* Exception

#<ActionView::TemplateError: 
ActionView::TemplateError (compile error
/websys/bibapp-trunk/app/views/name_strings/show.html.haml:31: syntax
error, unexpected kENSURE, expecting $end) on line #31 of
app/views/name_strings/show.html.haml:
28:         - else
29:           %p="Nobody at #{$UNIVERSITY_SHORT_NAME} has claimed this
name.  This might be somebody from another campus."

    app/views/name_strings/show.html.haml:31:in `compile!'
    haml (2.2.22) lib/haml/helpers/action_view_mods.rb:13:in `render'
    haml (2.2.22) lib/haml/helpers/action_view_mods.rb:13:in `render'
    haml (2.2.22) lib/sass/plugin/rails.rb:20:in `process'
    passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request'

What version of the product are you using? On what operating system?
Ruby-Enterprise-1.8.7

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cmess (0.1.2.288)
daemons (1.0.10)
fastthread (1.0.7)
haml (2.2.22)
hpricot (0.8.2)
htmlentities (4.0.0)
isbn-tools (0.1.0)
libxml-ruby (0.8.3)
mislav-will_paginate (2.3.11)
namecase (1.1.0)
passenger (2.2.11)
pg (0.8.0)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
RedCloth (4.1.9)
ruby-net-ldap (0.0.4)
ruby-nuggets (0.6.2)
rubygems-update (1.3.6)
rubyist-aasm (2.0.7)
rubyzip (0.9.4)
solr-ruby (0.0.8)

Please provide any additional information below.
I never got this error until I recently updated ruby and gems.

Original issue reported on code.google.com by stirnam...@gmail.com on 4 Apr 2010 at 5:06

GoogleCodeExporter commented 9 years ago
I've also had this issue, and fixed it in exactly the same way. I think it has 
to do
with the version of haml we're using.

diff show.html.haml.new show.html.haml.orig   
28,29c28,29
<       - else
<         %p="Nobody at #{$UNIVERSITY_SHORT_NAME} has claimed this name.  This 
might
be somebody from another campus."
---
>         - else
>           %p="Nobody at #{$UNIVERSITY_SHORT_NAME} has claimed this name.  This
might be somebody from another campus."
\ No newline at end of file

My gem versions:
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cmess (0.2.3, 0.1.2.288)
daemons (1.0.10)
fastthread (1.0.7)
haml (3.0.4, 2.2.20)
hpricot (0.8.2)
htmlentities (4.2.1, 4.0.0)
isbn-tools (0.1.0)
libxml-ruby (1.1.4, 0.8.3)
mislav-will_paginate (2.3.11)
mysql (2.8.1)
namecase (1.1.0)
passenger (2.2.11, 2.2.9)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
RedCloth (4.2.3, 4.1.9)
ruby-net-ldap (0.0.4)
ruby-nuggets (0.6.2)
rubyist-aasm (2.1.1, 2.0.7)
rubyzip (0.9.4)
solr-ruby (0.0.8)

Original comment by nada.on...@gmail.com on 18 May 2010 at 8:58

GoogleCodeExporter commented 9 years ago

Original comment by waingram on 29 Jun 2010 at 6:02