From 4d6ad9c48b7086bdd71f8da534d4e85ca77230be Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Wed, 28 Sep 2005 10:55:57 +0000 Subject: [PATCH] Updated rdoc for javascript_include_tag git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 10 +++++++--- 1 file 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 61a0f0b45a572..23d691bb133f4 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 @@ def javascript_path(source) # # javascript_include_tag :defaults # => # - # - # - # + # + # *see beloe + # + # If there's a application.js file in your public/javascripts directory, + # javascript_include_tag :defaults will automatically include it. This file + # is thought for small snippets of JavaScript code, along the lines of + # controllers/application.rb and helpers/application_helper.rb. def javascript_include_tag(*sources) options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } if sources.first == :defaults