converted attempts#new to haml