Groups
Sign in
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
auto_discover_link_tag ignores url_options
21 views
Skip to first unread message
Sunny Juneja
unread,
Oct 23, 2014, 1:05:55 PM
10/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Hey Everyone,
I was adding an atom feed to a rails application and noticed something:
According to the docs
http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html#method-i-auto_discovery_link_tag
auto_discovery_link_tag(:atom, {controller: "home", action: "public_archives"})`
Should return
<link rel="alternate" type="application/atom+xml" title="ATOM" href="
http://www.currenthost.com/home/public_archives
" />
but I'm getting just the host without the controller or action.
<link href="
http://currenhost.com/
" rel="alternate" title="ATOM" type="application/atom+xml" />
Would anyone mind pointing me in what I might be doing wrong? I also cross posted this question on Stack Overflow if you want the rep.
http://stackoverflow.com/questions/26513739/auto-discover-link-tag-ignores-url-options
Sunny Juneja
Reply all
Reply to author
Forward
0 new messages