No. 1 in Gemfile
gem "haml-rails", "~> 2.0"
write.
Do bundle install
on terminal
Now you can use Haml.
on terminal
rails haml:erb2haml
You can change all existing files to haml by doing.
At that time, you will be asked (y / n)
, so answer all with y
and complete all changes.
Recommended Posts