Ruby on Rails
Thursday, October 23, 2014
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.
Sunny Juneja
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d677e6d3-87af-463e-a90a-f59c4ba10b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment