How to use SASS, HAML, and CoffeeScript in Rails 3.2.x Engine?
问题 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? 回答1: Here's a different solution which will use the coffee-rails and sass-rails gems by default - also fixes haml-rails . I added this to the top of my engine