Skip to content

Instantly share code, notes, and snippets.

Rails scaffolding

rails new [name] -d postgresql -T -B

html2haml convertion

convert all .erb files to .haml using gem 'html2haml' in your gemfile.

find . -name \*.erb -print | sed 'p;s/.erb$/.haml/' | xargs -n2 html2haml

After that - remove all unessesary erb files: