bdstevens
unread,Dec 11, 2009, 5:12:50 PM12/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haml
This is my first time in years posting to a group asking for help, but
I am stumped and could use some pointers for troubleshooting. My
issue is that I just converted a Rails app to use HAML templates. In
development, everything works fine, and the output is as expected.
When I moved it into production, everything appears fine in the
browser, but upon viewing the source, I notice that the HTML is not
indented properly (or, well, at all).
Here's the information I think is pertinent. If anything else is
needed, let me know.
I'm developing on OSX 10.6, using Ruby 1.9.1-p243 (and I tried with
p376 as well), PostgreSQL 8.4.1, Rails 2.3.4, and HAML 2.2.15. With
this setup, everything appears good.
My production setup is CentOS 5.2, PostgreSQL 8.4.1, Rails 2.3.4.
I've tried rubies 1.9.2dev, 1.9.1-p243, 1.8.6 and 1.8.7. I'm using
the HAML which I froze with my Rails app, 2.2.15.
I've done lots of troubleshooting. One of the odd things is that I
believe with 1.9.2dev (and/or 1.9.1-p243, I don't recall which) I
installed the HAML gem. When running HAML on the command line with a
simple HTML page header template, it produces the output as expected.
But the output I get through the Rails app has NO indenting in the
HTML output (verified by both viewing source from the browser and by
examining the output in the Rails console).
Can anyone give me pointers on how to troubleshoot where the problem
may be?