Switch to HAML

When

I recommend switching to HAML before investing significant effort into your HTML.

What

HAML is an HTML templating language. It makes it easier and more pleasant to write HTML templates.

Why

The default templating language for Rails is ERB (aka eRuby or Embedded Ruby). It is a simple way to embed Ruby code into text files using expression tags () and execution tags ().

How

Add gem 'haml-rails' to your Gemfile and run bundle.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Damien Burke

Damien Burke

Engineering leader with twenty years of experience in software startups