O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rails and CoffeeScript

Another big addition to Rails 3.1 was the asset pipeline. Its main goal is to make it easy to treat assets such as JavaScript and CSS as first-class citizens in your Rails app. Prior to this, JavaScript and CSS were just served as static content. It also provides an organizational skeleton that helps you to organize your JavaScript and CSS and provides a DSL for accessing them.

With the asset pipeline, you can organize and manage dependencies between assets using manifest files. Rails will also use the pipeline to minify and concatenate JavaScript as well as apply fingerprints for cache busting.

The asset pipeline also has a pre-processor chain that will allow you to run files through a series of input-output processors before ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required