coffee-script-source This gem allows you to use coffeescript 2 with the rails asset pipeline. Installation Add this line to your application's Gemfile: gem 'coffee-script-source', git: 'https://github.com/jewel/coffee-script-source' And then execute: $ bundle