From 2033db171ad88d0cbee719cd603bf76aa3dda5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohnic=CC=81?= Date: Tue, 21 Aug 2012 14:47:52 +0200 Subject: Fix documentation mistakes --- .../lib/action_view/helpers/asset_tag_helper.rb | 84 +++++++++++----------- actionpack/lib/action_view/helpers/form_helper.rb | 6 +- 2 files changed, 45 insertions(+), 45 deletions(-) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 68b0195700..ceb56824fa 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -209,18 +209,18 @@ module ActionView # * :title - Specify the title of the link, defaults to the +type+ # # ==== Examples - # auto_discovery_link_tag # => - # - # auto_discovery_link_tag(:atom) # => - # - # auto_discovery_link_tag(:rss, {:action => "feed"}) # => - # - # auto_discovery_link_tag(:rss, {:action => "feed"}, {:title => "My RSS"}) # => - # - # auto_discovery_link_tag(:rss, {:controller => "news", :action => "feed"}) # => - # - # auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {:title => "Example RSS"}) # => - # + # auto_discovery_link_tag + # # => + # auto_discovery_link_tag(:atom) + # # => + # auto_discovery_link_tag(:rss, {:action => "feed"}) + # # => + # auto_discovery_link_tag(:rss, {:action => "feed"}, {:title => "My RSS"}) + # # => + # auto_discovery_link_tag(:rss, {:controller => "news", :action => "feed"}) + # # => + # auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {:title => "Example RSS"}) + # # => def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) tag( "link", @@ -360,18 +360,18 @@ module ActionView # width="30" and height="45". :size will be ignored if the # value is not in the correct format. # - # image_tag("icon") # => - # Icon - # image_tag("icon.png") # => - # Icon - # image_tag("icon.png", :size => "16x10", :alt => "Edit Entry") # => - # Edit Entry - # image_tag("/icons/icon.gif", :size => "16x16") # => - # Icon - # image_tag("/icons/icon.gif", :height => '32', :width => '32') # => - # Icon - # image_tag("/icons/icon.gif", :class => "menu_icon") # => - # Icon + # image_tag("icon") + # # => Icon + # image_tag("icon.png") + # # => Icon + # image_tag("icon.png", :size => "16x10", :alt => "Edit Entry") + # # => Edit Entry + # image_tag("/icons/icon.gif", :size => "16x16") + # # => Icon + # image_tag("/icons/icon.gif", :height => '32', :width => '32') + # # => Icon + # image_tag("/icons/icon.gif", :class => "menu_icon") + # # => Icon def image_tag(source, options={}) options = options.symbolize_keys @@ -408,24 +408,24 @@ module ActionView # width="30" and height="45". :size will be ignored if the # value is not in the correct format. # - # video_tag("trailer") # => - #