convert erb to haml devise and add reference