rails-composer icon indicating copy to clipboard operation
rails-composer copied to clipboard

ERB not converted to HAML

Open FranklinYu opened this issue 10 years ago • 2 comments

I chose HAML as a template engine, and got an error

Error: No such file or directory @ rb_sysopen - $(APP_ROOT)/app/views/layouts/application.html.haml

when the composer is doing

gsub    app/views/layouts/application.html.haml

Then I go to app/views/ and found only ERB instead of HAML:

$ tree app/views
app/views
├── layouts
│   └── application.html.erb
└── visitors
    └── index.html.erb

My options are dumped here and full log here.

P.S. I wish there is an option for the composer to dump all my options.

FranklinYu avatar Dec 21 '15 01:12 FranklinYu

Knock knock?

FranklinYu avatar Jan 24 '17 03:01 FranklinYu

I identify the "Custom application" choice as "experimental" because it is difficult for me to test and support every combination of options, especially as gems and Rails change so often.

Try using Ruby 2.4 and Rails 5.0 and do NOT disable Rails Turbolinks. I think you will also need to skip pry and rubocop at this time.

DanielKehoe avatar Jan 24 '17 08:01 DanielKehoe