xml.instruct!

xml.rss "version" => "2.0", "xmlns:dc" => "https://purl.org/dc/elements/1.1/", "xmlns:atom" => "https://www.w3.org/2005/Atom" do
	xml.channel do

		xml.title				"LucasKazan.com Updates"
		xml.link				url_for :only_path => false, :controller => 'public', :action => 'index'
		xml.description	"Updates for LucasKazan.com"
		xml.atom				:link, :href => 'https://www.lucaskazan.com/public/rss', :rel => "self", :type => "application/rss+xml"

		for feed in @feed 
			if feed.class == Reality 
				xml.item do
					xml.title				feed.simple_title
					xml.description	feed.text
					xml.pubDate			feed.scheduled_update.strftime('%a, %d %b %Y %H:%M:%S') + ' EST'
					xml.link				url_for :only_path => false, :controller => 'tour', :action => 'reality_trailer', :id => feed.id
					xml.guid				url_for :only_path => false, :controller => 'tour', :action => 'reality_trailer', :id => feed.id
				end

			elsif feed.class == Video 
				xml.item do
					xml.title				feed.simple_title
					xml.description	feed.text
					xml.pubDate			feed.scheduled_update.strftime('%a, %d %b %Y %H:%M:%S') + ' EST'
					xml.link				url_for :only_path => false, :controller => 'tour', :action => 'videos_trailer', :id => feed.id
					xml.guid				url_for :only_path => false, :controller => 'tour', :action => 'videos_trailer', :id => feed.id
				end
			end
		end
	end
end