Skip to content

Instantly share code, notes, and snippets.

@triskweline
Created June 10, 2013 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triskweline/5747262 to your computer and use it in GitHub Desktop.
Save triskweline/5747262 to your computer and use it in GitHub Desktop.
xml.instruct!
xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
xml.channel do
xml.title "makandra cards for #{@user.public_name}"
xml.link sites_url
xml.language 'en'
xml.tag! 'atom:link', :rel => 'self', :type => 'application/rss+xml', :href => sites_url
for note in @notes
xml.item(&note_rss_itemizer(note))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment