Created
February 22, 2014 03:59
-
-
Save aharpole/9148496 to your computer and use it in GitHub Desktop.
Using Rails Atom builder with non-AR objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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