translated the erb file to haml