File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ This ensures that:
13
13
14
14
Pretty fancy, eh? The modern world is just so amazing.
15
15
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
+
16
28
### Older versions of Rails
17
29
18
30
The current version of Haml-rails requires 4.0.1 or later.
You can’t perform that action at this time.
0 commit comments