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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---