Add haml and haml-rails gems to Gemfile. Make application.html.haml file and remove application.html.erb file.