converted application controller erb to haml