HAML, by default in development renders “pretty”, correctly indented HTML output. In production it renders “ugly” output by default. I really appreciate the value of indented html output. If only so that when debugging HTML source (sometime DOM isn’t good enough) you can see the hierarchy of the page. Many an hour has been spent searching for that elusive missing closing
This has just caused me a load of unnecessary worry. The app i’m working on uses Paypal to handle payments and yesterday I noticed that all Payments made to the site were showing a “Unclaimed”. Turns out that I’d already set my default currency to GBP… when Paypal Sandbox requires USD (silly me for preparing my app for the real world).
Once again I’m shocked (not really, i’ve used PayPal before) at how much pain it is to develop using PayPal if you are not a US resident. Personally when it comes to dealing with money through a web app, I’d like to test the app as it would be in “the wild” not set a load of stuff up that will only every work in Dev.
Ah well, I’m not the first person to grumble about PayPal integration and i’m damn sure I won’t be the last.
Not a fully cross browser solution but works in FF and Webkit….
Posted in Gotchas
Tagged css, Gotchas, html