Brien Dilts
2005-Sep-19 16:45 UTC
what''s up with http:// instead of feed:// with auto_discovery_link_tag
Just a little observation the <%= auto_discovery_link_tag :rss %> seems to create a link to your feed using the http protocol, should it not be feed:// and if so is there a way to over-ride this creation method to use feed instead? -- J "Brien" Dilts | HybridIndie Productions | http://hybridindie.com | hybridindie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rick Olson
2005-Sep-19 17:20 UTC
Re: what''s up with http:// instead of feed:// with auto_discovery_link_tag
On 9/19/05, Brien Dilts <hybridindie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Just a little observation the <%= auto_discovery_link_tag :rss %> seems to > create a link to your feed using the http protocol, should it not be feed:// > and if so is there a way to over-ride this creation method to use feed > instead?feed:// isn''t a protocol. This is what content types are for. This is why we don''t have bittorrent://, gif://, jpg:// etc etc. But, you may still want to use it to support whatever wacky aggregators that need it. You should be able to use it like so: <%= auto_discovery_link_tag :rss, :protocol => ''feed://'' %> If you look at the source of the method at (http://rails.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M000359) you''ll see that it passes the options hash to url_for to create the url. -- rick http://techno-weenie.net