include total post count for xml (#590)

This commit is contained in:
Toks
2013-05-13 14:09:48 -04:00
parent 050d231375
commit 6e81dd6dad

View File

@@ -13,7 +13,9 @@ class PostsController < ApplicationController
respond_with(@posts) do |format|
format.atom
format.xml do
render :xml => @posts.to_xml(:root => "posts")
render :xml => @posts.to_xml(:root => "posts") {|builder|
builder.tag!(:total_count, @posts.total_count)
}
end
end
end