diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index bb62b45e443db..73a3cf5752b82 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -14,7 +14,6 @@ module Helpers #:nodoc: # # => Rails # stylesheet_link_tag("application") # # => - # module AssetTagHelper extend ActiveSupport::Concern @@ -50,7 +49,6 @@ module AssetTagHelper # # javascript_include_tag "http://www.example.com/xmlhr.js" # # => - # def javascript_include_tag(*sources) options = sources.extract_options!.stringify_keys path_options = options.extract!('protocol').symbolize_keys @@ -88,7 +86,6 @@ def javascript_include_tag(*sources) # stylesheet_link_tag "random.styles", "/css/stylish" # # => # # - # def stylesheet_link_tag(*sources) options = sources.extract_options!.stringify_keys path_options = options.extract!('protocol').symbolize_keys @@ -109,10 +106,13 @@ def stylesheet_link_tag(*sources) # +url_options+. You can modify the LINK tag itself in +tag_options+. # # ==== Options + # # * :rel - Specify the relation of this link, defaults to "alternate" # * :type - Override the auto-generated mime type # * :title - Specify the title of the link, defaults to the +type+ # + # ==== Examples + # # auto_discovery_link_tag # # => # auto_discovery_link_tag(:atom) @@ -148,9 +148,12 @@ def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) # you can override "rel" and "type". # # ==== Options + # # * :rel - Specify the relation of this link, defaults to 'shortcut icon' # * :type - Override the auto-generated mime type, defaults to 'image/vnd.microsoft.icon' # + # ==== Examples + # # favicon_link_tag '/myicon.ico' # # => # @@ -160,7 +163,6 @@ def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) # # favicon_link_tag '/mb-icon.png', rel: 'apple-touch-icon', type: 'image/png' # # => - # def favicon_link_tag(source='favicon.ico', options={}) tag('link', { :rel => 'shortcut icon', @@ -173,6 +175,7 @@ def favicon_link_tag(source='favicon.ico', options={}) # path or a file. # # ==== Options + # # You can add HTML attributes using the +options+. The +options+ supports # three additional keys for convenience and conformance: # @@ -250,6 +253,8 @@ def image_alt(src) # width="30" and height="45". :size will be ignored if the # value is not in the correct format. # + # ==== Examples + # # video_tag("trailer") # # =>