Currently, I have a Rails 3.2.9 Engine which is using sass-rails. When I generate a controller with a couple actions, the assets are also generated (i.e., javascript and CSS). However, both the Javascript and SASS are *.js and *.css files. They’re not CoffeeScript (*.js.coffee) or SASS (*.css.sass). Any ideas how to get this work?
Currently, I have a Rails 3.2.9 Engine which is using sass-rails . When I
Share
Here’s a different solution which will use the
coffee-railsandsass-railsgems by default – also fixeshaml-rails.I added this to the top of my
engine.rbfile:What I did was inspect the source code of these files to see how they work in a normal Rails application. For example, in
haml-railsI looked atlib/haml-rails.rband saw the following:Similar files exist for
sass-rails(lib/sass/rails/railtie.rb) andcoffee-rails(lib/coffee/rails/engine.rb).