A couple handy Rails helpers - conditional comments and docttype 1

Posted by Tim Connor Fri, 06 Apr 2007 23:08:00 GMT

A buddy of mine, Tieg, from 12 Spokes wrote a Rails helper for conditional comments. That combined with Jeremy Voorhis’s doctype and html tag helpers clean up the top of my layouts nicely, when I use ERb. When I use Markaby, which takes care of doctype and html attributes for you, the conditional comments helper is still useful.