Hi Brian, AFAIK, haml turns on ugly mode in production for better performance.
Rhett On Dec 11, 2009, at 5:12 PM, bdstevens <[email protected]> wrote: > 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? > > -- > > 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 > . > > -- 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.
