Nathan Weizenbaum wrote:
> It sounds like you've got an old Haml version there. How is Haml 
> installed? Are you sure the system gem version is 2.2.6?

Yes, it seems there was an old Haml version there.  Thank you for the 
tip.  I had installed the Haml gem via the gem command, however, at some 
point (maybe when installing haml-elisp for emacs's Haml mode) the 
Ubuntu version of the Haml library was also installed.  That version was 
2.0.9, and was overriding my gem.  So even though "/usr/bin/haml 
--version" reported 2.2.6, the actual lib being used by rails was the 
older 2.0.9 version.

Thank you,

e,

> 
> On Mon, Sep 28, 2009 at 11:53 PM, Eric Wollesen <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> 
>     Hi all,
> 
>     I have a rails app (2.3.3) in which I've been successfully using haml
>     (2.2.2) for a while.  I recently cloned the app's git repository to a
>     new box, but when I try to load the app on that box, I get:
> 
>        Haml::SyntaxError in Homes#show
> 
>        Showing app/views/layouts/application.html.haml where line #4
>     raised:
> 
>        Illegal nesting: content can't be both given on the same line as
>     %html and nested within it.
> 
>     The app/views/layouts/application.html.haml file can be seen here:
>     http://pastie.org/634536
> 
>     I don't see where the source involved has such a condition, and as
>     I've mentioned, this app runs fine on three other boxes I have at my
>     disposal.  Did I miss something obvious?
> 
>     I've been careful to check for extra whitespace at the end of the
>     line, I'm certain there's none there.  I switched the line in question
>     to use ruby hash syntax instead, ie %html{:xmlns => "..."}, but then I
>     got the same error for the next line in which I used the "html-style"
>     attributes.  I'd rather not go through my entire app and switch to
>     ruby hash syntax if it can be avoided.
> 
>     Any help would be appreciated!
> 
>     e.
> 
>     PS- I've tried upgrading to haml 2.2.6 and rails 2.3.4 but to no
>     avail.
> 
> 
> 
> 
> > 


-- 
Eric Wollesen
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to