Skip to content

Commit

Permalink
Unify atom links on index page and atom itself.
Browse files Browse the repository at this point in the history
The atom link on the html index (without tag) is "url/posts.atom" while on the atom feed the self link was "url/.atom".

This commit copies the url statement from index to atom feed.
  • Loading branch information
Adam Wróbel committed Dec 21, 2010
1 parent 758709f commit 3868ecd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/views/posts/index.atom.builder
@@ -1,5 +1,11 @@
url = if @tag.nil?
formatted_posts_path(:format => 'atom', :only_path => false)
else
posts_path(:tag => @tag, :format => 'atom', :only_path => false)
end

atom_feed(
:url => posts_path(:tag => @tag, :format => 'atom', :only_path => false),
:url => url,
:root_url => posts_path(:tag => @tag, :only_path => false),
:schema_date => '2008'
) do |feed|
Expand Down

0 comments on commit 3868ecd

Please sign in to comment.