Skip to content

Commit

Permalink
Updated rdoc for javascript_include_tag
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
madrobby committed Sep 28, 2005
1 parent db8f727 commit 4d6ad9c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions actionpack/lib/action_view/helpers/asset_tag_helper.rb
Expand Up @@ -46,9 +46,13 @@ def javascript_path(source)
# #
# javascript_include_tag :defaults # => # javascript_include_tag :defaults # =>
# <script type="text/javascript" src="/javascripts/prototype.js"></script> # <script type="text/javascript" src="/javascripts/prototype.js"></script>
# <script type="text/javascript" src="/javascripts/effects.js"></script> # <script type="text/javascript" src="/javascripts/scriptaculous.js"></script>
# <script type="text/javascript" src="/javascripts/controls.js"></script> # <script type="text/javascript" src="/javascripts/application.js"></script> *see beloe
# <script type="text/javascript" src="/javascripts/dragdrop.js"></script> #
# 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) def javascript_include_tag(*sources)
options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { }
if sources.first == :defaults if sources.first == :defaults
Expand Down

0 comments on commit 4d6ad9c

Please sign in to comment.