I wish I was late for the party, but Dillon Buchanan answered this question here .
Go to the config/initializers directory and create a file like slim_assets.rb (or something similar) and copy the paste to the following line:
Rails.application.assets.register_engine('.slim', Slim::Template)
I did something similar with great success with HAML (which I use to write templates for Rails / AngJS applications).
Kurt mueller
source share