diff options
author | Scott Stewart <scott@scopestar.com> | 2011-06-18 06:31:22 -0700 |
---|---|---|
committer | Scott Stewart <scott@scopestar.com> | 2011-06-18 06:31:22 -0700 |
commit | 0a45e24879a604924fea4cced7528fd98d1c3c35 (patch) | |
tree | 3072d983a34b064283fc11c7216d48df8322b98a /railties/guides | |
parent | 38aa153f9e18951c274a6554e04a8830a36e50c1 (diff) | |
download | rails-0a45e24879a604924fea4cced7528fd98d1c3c35.tar.gz rails-0a45e24879a604924fea4cced7528fd98d1c3c35.tar.bz2 rails-0a45e24879a604924fea4cced7528fd98d1c3c35.zip |
Edited railties/guides/source/asset_pipeline.textile via GitHub
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index a795b88ef5..fdfac8a9d9 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -77,7 +77,7 @@ For example, in the default Rails application there's a +app/assets/javascripts/ //= require_tree . </plain> -In JS files, directives begin with +//=+. In this case, the file is using the +require+ directive twice and the +require_tree+ directive once. The +require+ directive tells Sprockets that we would like to require a file called +jquery.js+ that is available somewhere in the search path for Sprockets. By default, this is located inside the +vendor/assets/javascripts+ directory contained within the +jquery_rails+ gem. An identical event takes place for the +jquery_ujs+ require specified here also. +In JS files, directives begin with +//=+. In this case, the file is using the +require+ directive twice and the +require_tree+ directive once. The +require+ directive tells Sprockets that we would like to require a file called +jquery.js+ that is available somewhere in the search path for Sprockets. By default, this is located inside the +vendor/assets/javascripts+ directory contained within the +jquery-rails+ gem. An identical event takes place for the +jquery_ujs+ require specified here also. The +require_tree .+ directive tells Sprockets to include _all_ JavaScript files in this directory into the output. A path relative to the file can be specified if only certain files are required to be loaded. |