Let's create a simple rails application and change one of the view files to Haml from ERB:
rails new blog
Gemfileand run it:
rails g scaffold post
You should get an output as shown in the following screenshot:
Our application is not yet generating Haml views automatically. We will switch it to this ...