haml-rails on rails 4.0?

2019-02-16 20:24发布

问题:

I'm wondering if anyone has run into any snags with the haml-rails gem in Rails 4.0. There is a Rails Cast that says there were some problems but there is not much more mention of this. The gem hosted on GitHub also doesn't explicitly mention support for Rails 4.0. So what's the status on this?

回答1:

I'm using haml-rails (0.4) in a rails 4 project and everything is working



回答2:

Haml 4.0.4 have release to support rails 4 application. You can use haml-rails. Now, it doesn't have problem. Include gem package in gem file

gem 'haml-rails'

and bundle the project