aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/asset_tag_helper.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-04-04 07:37:23 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-04-04 07:37:23 +0900
commite2d9e85368d1e049c55057fcf91aa036086c649a (patch)
treebd9c10eb55ceb336baf21b490524d9e7513a6a1f /actionview/lib/action_view/helpers/asset_tag_helper.rb
parentfaa37c76521f954c75cd18ea8f9e736c304fdb68 (diff)
downloadrails-e2d9e85368d1e049c55057fcf91aa036086c649a.tar.gz
rails-e2d9e85368d1e049c55057fcf91aa036086c649a.tar.bz2
rails-e2d9e85368d1e049c55057fcf91aa036086c649a.zip
correct output of auto_discovery_link_tag [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/asset_tag_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/asset_tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb
index 5c28043f8a..60fc9ee1a2 100644
--- a/actionview/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb
@@ -127,7 +127,7 @@ module ActionView
# auto_discovery_link_tag(:rss, {controller: "news", action: "feed"})
# # => <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.currenthost.com/news/feed" />
# auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "Example RSS"})
- # # => <link rel="alternate" type="application/rss+xml" title="Example RSS" href="http://www.example.com/feed" />
+ # # => <link rel="alternate" type="application/rss+xml" title="Example RSS" href="http://www.example.com/feed.rss" />
def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {})
if !(type == :rss || type == :atom) && tag_options[:type].blank?
raise ArgumentError.new("You should pass :type tag_option key explicitly, because you have passed #{type} type other than :rss or :atom.")