aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-06-18 21:09:15 +1000
committerRyan Bigg <radarlistener@gmail.com>2011-06-18 21:10:21 +1000
commitd746aea6f9fd7d58358618491f45fe7406bc5a92 (patch)
treed67668f3c4dde80f68eb8326861900ed759a3d6f /railties/guides
parent2fbb7504e2c2b0a95398d1ef0c97ea4a403d831d (diff)
downloadrails-d746aea6f9fd7d58358618491f45fe7406bc5a92.tar.gz
rails-d746aea6f9fd7d58358618491f45fe7406bc5a92.tar.bz2
rails-d746aea6f9fd7d58358618491f45fe7406bc5a92.zip
File needs to be at public/assets, not public/images
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/asset_pipeline.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index 1b444811a2..23c849c1f7 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -49,7 +49,7 @@ To serve assets, we can use the same tags that we are generally familiar with:
<%= image_tag "rails.png" %>
</erb>
-Providing that assets are enabled within our application (+Rails.application.config.assets.enabled+ is set to +true+), this file will be served by Sprockets unless a file at +public/images/rails.png+ exists, in which case that file will be served. If there is no file at +public/images+, Sprockets will look through the available paths until it finds a file that matches the name and then will serve it, first looking in the application's assets directories and then falling back to the various engines of the application.
+Providing that assets are enabled within our application (+Rails.application.config.assets.enabled+ is set to +true+), this file will be served by Sprockets unless a file at +public/assets/rails.png+ exists, in which case that file will be served. If there is no file at +public/assets+, Sprockets will look through the available paths until it finds a file that matches the name and then will serve it, first looking in the application's assets directories and then falling back to the various engines of the application.
To include a JavaScript file we can still use the familiar +javascript_include_tag+.