This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/experiences/_experiences.rxml

20 lines
819 B
Plaintext

xml.instruct! :xml, :version=>"1.0"
xml.rss(:version=>"2.0"){
xml.channel{
xml.title("#{@people.title}'s Newest Beers")
xml.link(experience_url(@people.page.title_for_url))
xml.description("Most recently added beers.")
xml.language('en-us')
xml.lastBuildDate((@experiences.first.created_at.strftime("%a, %d %b %Y %H:%M:%S %z") rescue nil))
for experience in @experiences
xml.item do
xml.title(experience.beer.title)
xml.description(experience.beer.brewery.title)
xml.author(experience.beer.page.created_by.title)
xml.pubDate(experience.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
xml.link(beer_url(experience.beer.page.title_for_url))
xml.guid(beer_url(experience.beer.page.title_for_url))
end
end
}
}