xml.instruct!

xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do

  xml.title   @feed_title
  xml.link    "rel" => "self", "href" => url_for(:only_path => false, :controller => 'feeds', :action => 'atom')
  xml.link    "rel" => "alternate", "href" => url_for(:only_path => false, :controller => 'pages')
  xml.id      url_for(:only_path => false, :controller => 'pages')
  xml.updated @flares_last.updated_at.strftime("%Y-%m-%dT%H:%M:%SZ")
  xml.author  { xml.name @feed_author }

  @flares.each do |feed|
    xml.entry do
      xml.title   feed.title
      xml.link    "rel" => "alternate", "href" => feed.url
      xml.id      feed.url
      xml.updated feed.updated_at.strftime "%Y-%m-%dT%H:%M:%SZ"
      xml.author  { xml.name @feed_author }
      xml.summary feed.description
    end
  end

end
