diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2011-06-28 08:24:59 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2011-06-28 08:24:59 +1000 |
commit | 9959fa2d155164e6c9f286fd4bcf8c4ab130951e (patch) | |
tree | 570f0b524c71ae2e7a54bbbf79381acddc83ec2d /railties | |
parent | 703b00947d745cbbe33f570762817151f8d7ef2b (diff) | |
download | rails-9959fa2d155164e6c9f286fd4bcf8c4ab130951e.tar.gz rails-9959fa2d155164e6c9f286fd4bcf8c4ab130951e.tar.bz2 rails-9959fa2d155164e6c9f286fd4bcf8c4ab130951e.zip |
[asset pipeline] Add examples of javascript_include_tag and stylesheet_link_tag
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index db13817535..4d052c16f3 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -49,7 +49,12 @@ Providing that assets are enabled within our application (+config.assets.enabled Otherwise, 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. -Sprockets does not add any new methods to require your assets, we still use the familiar +javascript_include_tag+ and +stylesheet_link_tag+. You can use it to include from the normal public directory or the assets directory. +Sprockets does not add any new methods to require your assets, we still use the familiar +javascript_include_tag+ and +stylesheet_link_tag+. + +<erb> + <%= stylesheet_link_tag "application" %> + <%= javascript_include_tag "application" %> +</erb> h4. Manifest Files and Directives |