Rails 3.1 asset-pipeline gem to provide underscore.js Install gem 'underscore-rails' Use In your application.js manifest: //= require underscore or directly available under /assets/underscore.js Easy as pie.