Implement Edit action with tests + haml formatting