Tag Archives: Gotchas

Pretty HTML Output With HAML

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 … Continue reading

Posted in Random Stuff | Tagged , , | Leave a comment

Incorrect Paypal Default Currency In Development Causes Unclaimed Payments in Sandbox

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 … Continue reading

Posted in Gotchas | Tagged , , , , | Leave a comment

Styling Text Input Placeholder Text

Not a fully cross browser solution but works in FF and Webkit…. http://davidwalsh.name/html5-placeholder-css

Posted in Gotchas | Tagged , , | Leave a comment

CSS: table border-collapse

Just had to go re-read the docs again for this one so i thought i’d commit it to memory. To remove gaps between table cells, use (I was trying to add it to the cells themselves) NOT

Posted in Gotchas, HTML/CSS | Tagged , | Leave a comment

Protecting Assets hosted on Amazon S3

One of the requirements of a website i’m building is that assets uploaded by the website’s users are protected from access outside the website whilst still being accessible from within the site. I’m using Paperclip (Rails 3.1) for uploads and … Continue reading

Posted in Gotchas, RoR | Tagged , , , , | Leave a comment

Misleading Validation Errors In Spree

Just a reminder that when shipping address fails validation due to “no shipping method” it may be caused by incorrect weight set additional calculators.

Posted in Gotchas, Ruby | Tagged , , , | Leave a comment

Debugging Mootools 1.2.4, Rails 3 UJS Problems… Solved!

In Times Of Crisis… Spent a whole evening last night trying to get the Mootools Rails 3 UJS driver working correctly. Links created in templates were recognised as having “data-remote” attributes as rails.js applies events on domready but dynamically created … Continue reading

Posted in Gotchas, Javascript, RoR, Ruby | Tagged , , , , , | 2 Comments