diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-24 00:17:44 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-24 00:19:41 +0530 |
commit | 5683d6883b20e5ed88e26d07c841911b225a5841 (patch) | |
tree | c5bdfa437a3cebd5a42dea403b98dc454e2dd605 /railties/guides/source/layouts_and_rendering.textile | |
parent | 2c8938fcba6670f2cb056ec91d631ae0e37ea006 (diff) | |
download | rails-5683d6883b20e5ed88e26d07c841911b225a5841.tar.gz rails-5683d6883b20e5ed88e26d07c841911b225a5841.tar.bz2 rails-5683d6883b20e5ed88e26d07c841911b225a5841.zip |
It's JavaScript :)
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 4cdd4f2709..f0e40b0980 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -681,7 +681,7 @@ There are three tag options available for +auto_discovery_link_tag+: * +:type+ specifies an explicit MIME type. Rails will generate an appropriate MIME type automatically. * +:title+ specifies the title of the link -h5. Linking to Javascript Files with +javascript_include_tag+ +h5. Linking to JavaScript Files with +javascript_include_tag+ The +javascript_include_tag+ helper returns an HTML +script+ tag for each source provided. Rails looks in +public/javascripts+ for these files by default, but you can specify a full path relative to the document root, or a URL, if you prefer. For example, to include +public/javascripts/main.js+: |