xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" xml.rss "version" => "2.0", 'xmlns:opensearch' => "https://a9.com/-/spec/opensearch/1.1/", 'xmlns:atom' => "https://www.w3.org/2005/Atom" do xml.channel do xml.title "Recent Posts in '{topic}' | Beast"[:recent_posts_in_topic,@topic.title] xml.link forum_topic_url # implicitly uses (@forum, @topic) xml.language "en-us"[:feed_language] xml.ttl "60" xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "https://#{request.host_with_port+request.relative_url_root}/open_search.xml" xml.description @topic.body render :partial => "layouts/post", :collection => @posts, :locals => {:xm => xml} end end