originalhat
originalhat

Reputation: 1716

Rails: difference between placing stylesheets under 'assets' vs. 'public'

I've noticed stylesheets may be located in either:

What's the difference, and why?

EDIT: I also realize that this location is totally customizable, but these are the most prevalent locations I've found.

Upvotes: 3

Views: 2215

Answers (1)

Philip Hallstrom
Philip Hallstrom

Reputation: 19889

I'd suggest you go read about the "rails asset pipeline." That should answer your questions...

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

http://railscasts.com/episodes/279-understanding-the-asset-pipeline

The short answer is that 'app/assets' uses the asset pipeline and 'public/stylesheets' is simply a static file.

Upvotes: 5

Related Questions