From 0ce7ea65e1b9be853a007379a35d93135fbba2aa Mon Sep 17 00:00:00 2001 From: Cesar Carruitero Date: Sun, 21 Oct 2012 13:56:56 -0500 Subject: update AssetTagHelper documentation [ci skip] --- .../lib/action_view/helpers/asset_tag_helper.rb | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 4eac6514df..d6a2f36c8e 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -24,7 +24,7 @@ module ActionView # Returns an HTML script tag for each of the +sources+ provided. # # Sources may be paths to JavaScript files. Relative paths are assumed to be relative - # to public/javascripts, full paths are assumed to be relative to the document + # to assets/javascripts, full paths are assumed to be relative to the document # root. Relative paths are idiomatic, use absolute paths only when needed. # # When passing paths, the ".js" extension is optional. @@ -33,14 +33,14 @@ module ActionView # last argument. # # javascript_include_tag "xmlhr" - # # => + # # => # # javascript_include_tag "xmlhr.js" - # # => + # # => # # javascript_include_tag "common.javascript", "/elsewhere/cools" - # # => - # # + # # => + # # # # javascript_include_tag "http://www.example.com/xmlhr" # # => @@ -65,24 +65,24 @@ module ActionView # to "screen", so you must explicitely set it to "all" for the stylesheet(s) to # apply to all media types. # - # stylesheet_link_tag "style" # => - # + # stylesheet_link_tag "style" + # # => # - # stylesheet_link_tag "style.css" # => - # + # stylesheet_link_tag "style.css" + # # => # - # stylesheet_link_tag "http://www.example.com/style.css" # => - # + # stylesheet_link_tag "http://www.example.com/style.css" + # # => # - # stylesheet_link_tag "style", :media => "all" # => - # + # stylesheet_link_tag "style", :media => "all" + # # => # - # stylesheet_link_tag "style", :media => "print" # => - # + # stylesheet_link_tag "style", :media => "print" + # # => # - # stylesheet_link_tag "random.styles", "/css/stylish" # => - # - # + # stylesheet_link_tag "random.styles", "/css/stylish" + # # => + # # # def stylesheet_link_tag(*sources) options = sources.extract_options!.stringify_keys @@ -186,11 +186,11 @@ module ActionView # image_tag("icon.png", :size => "16x10", :alt => "Edit Entry") # # => Edit Entry # image_tag("/icons/icon.gif", :size => "16") - # # => Icon + # # => Icon # image_tag("/icons/icon.gif", :height => '32', :width => '32') - # # => Icon + # # => Icon # image_tag("/icons/icon.gif", :class => "menu_icon") - # # => Icon + # # => Icon def image_tag(source, options={}) options = options.symbolize_keys -- cgit v1.2.3