modify rules to use haml templates