Skip to content

Commit 1a7aab6

Browse files
committed
Merge pull request #74 from serv/master
Updated readme: include Convert application layout section
2 parents 7a04a1b + f057b9b commit 1a7aab6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ This ensures that:
1313

1414
Pretty fancy, eh? The modern world is just so amazing.
1515

16+
### Converting Rails application layout file to haml format
17+
18+
Once Haml-rails is installed on the Rails application,
19+
you can convert the erb layout file, `app/views/layouts/application.html.erb`
20+
to `app/views/layouts/application.html.haml` using this command:
21+
22+
$ rails generate haml:application_layout convert
23+
24+
After the application layout file is converted successfully,
25+
make sure to delete `app/views/layouts/application.html.erb`, so Rails can
26+
start using `app/views/layouts/application.html.haml` instead.
27+
1628
### Older versions of Rails
1729

1830
The current version of Haml-rails requires 4.0.1 or later.

0 commit comments

Comments
 (0)