Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated rdoc for javascript_include_tag

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 4d6ad9c48b7086bdd71f8da534d4e85ca77230be 1 parent db8f727
@madrobby madrobby authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 actionpack/lib/action_view/helpers/asset_tag_helper.rb
View
10 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -46,9 +46,13 @@ def javascript_path(source)
#
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.