xml instruct xml version xml rss version do xml channel do xml title F

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title "FindHolmes Properties"
xml.description "List of your properties"
xml.link properties_rss_url(params[:rss_secret])
for property in @properties
xml.item do
xml.title property.display_address
xml.description render(:partial => 'property.html.haml', :object => property)
xml.pubDate property.created_at.to_s(:rfc822)
xml.link property_url(property.id)
xml.guid property_url(property.id)
end
end
end
end