Skip to content

Instantly share code, notes, and snippets.

@aharpole
Created February 22, 2014 03:59
Show Gist options
  • Save aharpole/9148496 to your computer and use it in GitHub Desktop.
Save aharpole/9148496 to your computer and use it in GitHub Desktop.
Using Rails Atom builder with non-AR objects
atom_feed do |feed|
feed.title "Some title"
feed.updated Time.now
@feed_entries.each do |item|
feed.entry item, {id:42, url:"http://this_object.com/url"} do |entry|
#code for entry here
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment