Install haml-rails
masterTo use Haml as your templating engine in a Rails application, add the haml-rails gem to your Gemfile. This automatically configures Rails to use Haml for generated resources, views, and mailers, and ensures Haml templates are respected by the view template cache digestor.
gem "haml-rails"