Browse files

[asset pipeline] Add examples of javascript_include_tag and styleshee…

…t_link_tag
  • Loading branch information...
1 parent 703b009 commit 9959fa2d155164e6c9f286fd4bcf8c4ab130951e @radar radar committed Jun 28, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 railties/guides/source/asset_pipeline.textile
View
7 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

0 comments on commit 9959fa2

Please sign in to comment.