diff options
author | Thomas Fuchs <thomas@fesch.at> | 2005-09-28 10:55:57 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2005-09-28 10:55:57 +0000 |
commit | 4d6ad9c48b7086bdd71f8da534d4e85ca77230be (patch) | |
tree | 22f335475d9877e097e556833cfb408ba4ed8506 /actionpack/lib | |
parent | db8f7272292dec7076412d5426847a6e37f66024 (diff) | |
download | rails-4d6ad9c48b7086bdd71f8da534d4e85ca77230be.tar.gz rails-4d6ad9c48b7086bdd71f8da534d4e85ca77230be.tar.bz2 rails-4d6ad9c48b7086bdd71f8da534d4e85ca77230be.zip |
Updated rdoc for javascript_include_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 61a0f0b45a..23d691bb13 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -46,9 +46,13 @@ module ActionView # # javascript_include_tag :defaults # => # <script type="text/javascript" src="/javascripts/prototype.js"></script> - # <script type="text/javascript" src="/javascripts/effects.js"></script> - # <script type="text/javascript" src="/javascripts/controls.js"></script> - # <script type="text/javascript" src="/javascripts/dragdrop.js"></script> + # <script type="text/javascript" src="/javascripts/scriptaculous.js"></script> + # <script type="text/javascript" src="/javascripts/application.js"></script> *see beloe + # + # If there's a <tt>application.js</tt> file in your <tt>public/javascripts</tt> directory, + # <tt>javascript_include_tag :defaults</tt> will automatically include it. This file + # is thought for small snippets of JavaScript code, along the lines of + # <tt>controllers/application.rb</tt> and <tt>helpers/application_helper.rb</tt>. def javascript_include_tag(*sources) options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } if sources.first == :defaults |