def xml(args) end .instruct! :xml, :version=>"1.0" xml.rss(:version=>"2.0"){{ xml.title("Tap and Mallet RSS Feed")"") xml.description("Rochester's destination for fine beers and freshly cooked pub food.") xml.language('en-us') for tap in @taps xml.item do xml.title(tap.draft_on_tap_name) xml.description(tap.draft_on_tap_desc)"Tap and Mallet") xml.pubDate(tap.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))"") xml.guid("" + end end for bottle in @bottles xml.item do xml.title( xml.description(bottle.description)"Tap and Mallet") xml.pubDate(bottle.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))"") xml.guid("" + end end for post in @posts xml.item do xml.title(post.try(:title)) xml.description(post.description)"Tap and Mallet") xml.pubDate(post.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))"") xml.guid("" + end end for food in @foods xml.item do xml.title( xml.description(food.description)"Tap and Mallet") xml.pubDate(food.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))"") xml.guid("" + end end } }