Serodis
Serodis

Reputation: 2112

Rails 3 - Asset Pipeline -- What does it mean to me?

I am struggling to find any real documentation on the new Rails 3 asset pipeline. I know there is a video, but I do not wish to watch an hour video in this format. I watched about 10 minutes and gained no knowledge.

So, what do I need to know about Rails 3 asset pipelines? What does this mean to my previous projects, and what does it mean to my future projects?

Upvotes: 8

Views: 2945

Answers (2)

arunagw
arunagw

Reputation: 1193

You can get some good documentation here on rails guides here

http://edgeguides.rubyonrails.org/asset_pipeline.html

It's a great way to serve fast assets for your application. Sprockets is playing a major role in it.

Upvotes: 2

Draiken
Draiken

Reputation: 3815

It means you will now be able to write css and javascript in separate files using sass and coffeescript if you want and they will be compiled into one single file in the end.

If you have like, 4 css files on your assets/stylesheets they will be concatenated and compressed and delivered on production with a single application.css file.

Same thing applies to javascript files.

More info in http://getsprockets.org/

Upvotes: 8

Related Questions