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 # => # - # - # - # + # + # *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