Skip to content

Instantly share code, notes, and snippets.

@cbeer
Created March 2, 2011 18:30
Show Gist options
  • Save cbeer/851424 to your computer and use it in GitHub Desktop.
Save cbeer/851424 to your computer and use it in GitHub Desktop.
xml.title( document.to_semantic_values[:title][0] || document[:id] )
xml.link(catalog_url(document[:id]))
xml.author( document.to_semantic_values[:author][0] ) if document.to_semantic_values[:author][0]
xml.instruct! :xml, :version=>"1.0"
xml.rss(:version=>"2.0") {
xml.channel {
xml.title(application_name + " Search Results")
xml.link(catalog_index_url(params))
xml.description(application_name + " Search Results")
xml.language('en-us')
@document_list.each do |doc|
xml.item do
xml << render_document_partial(doc, 'rss')
end
end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment