Rails 3.1 asset-pipeline gem to provide popcorn.js support
gem 'popcornjs-rails'
In your application.js manifest:
//= popcorn
//= popcorn.min
//= popcorn-complete
//= popcorn-complete.min
//= popcorn-ie8
Beta: The Popcorn.js core library, plus IE8 shim, flash player support, and the YouTube player (minified)
//= popcorn-ie8.min
or directly available under /assets/popcorn.js