Converting erb to haml in rails3

I'm taking over a project that's just started and prefer to use haml. In setting up my environment to work with rails3 and haml, here's the best way I found to convert the fledgling app to haml.

Install gems

Run this

This will convert all .erb files in app/views into .haml files right next to them, leaving the originals in case you need to refer to them to fix somethig the converter missed. This isn't rails 3 specific, except for the Gemfile part, really.

Established 2005 · Databasically © 2016