Reputation: 19247
The solution that worked so well for Rails 4, the haml-rails gem, is apparently no longer active (last commit a year ago), and apparently has dependencies that stop it from working with released versions of Rails 5.
Is there any solution for a Rails 5 app that will automatically use Haml for layouts and scaffolded views?
Upvotes: 1
Views: 1281
Reputation: 19247
Looks like despite the last release being mid-2015, the haml-rails gem is still the way to go, as Igor mentioned in a comment. If someone finds a better (supported) alternative in Rails 5, LMK and I'll select that answer instead of my own.
Upvotes: 1
Reputation: 276
Did you try to specify haml as a default template engine? In config/application.rb:
class Application < Rails::Application
config.generators do |g|
g.template_engine :haml
end
end
'haml' gem should be present in your Gemfile
Upvotes: 0