December 2011
2 posts
Serving Ember.js with Rails 3.1's asset pipeline
Last week I spent some time modifying Kisko Labs’ sproutcore-rails gem to use the latest build of Ember.js. emberjs-rails is a fairly simple wrapper that add’s support for serving Handlebars templates from the asset pipeline using a hjs file extension. It also serves Ember’s html5 boilerplate template as a layout called ember.  Here’s a quick run through: First, start with...
Dec 25th
Properly validating email addresses.
There seems to be a lot of chit chat in the rails world about correctly validating email addresses.  The main problem is the compromise between speed and correctness, observe: The examples above illustrate the possible methods of email validation ranging from pathetic to extreme.  Given the average response speed of DNS, I think it’s legitimate to attempt a DNS lookup of the addresses...
Dec 18th