Sha256: bf21ea4f3558ed55eb58186cce0c408554445d1b46d4f0c81168a3b846af752f
Contents?: true
Size: 681 Bytes
Versions: 13
Compression:
Stored size: 681 Bytes
Contents
atom_feed(:language => I18n.locale) do |feed| feed.title 'Ducks' feed.subtitle 'Index of all ducks.' # Optional: feed.link :href => ducks_url(:atom), :rel => 'self' feed.updated (@ducks.first.created_at rescue Time.now.utc).strftime('%Y-%m-%dT%H:%M:%SZ')) @ducks.each do |duck| feed.entry(duck) do |entry| entry.title 'title' entry.summary 'summary' # Optional: entry.content 'content', :type => 'html' # Optional: entry.updated duck.try(:updated_at).strftime('%Y-%m-%dT%H:%M:%SZ') # Optional: entry.link :href => duck_url(duck, :atom) duck.author do |author| author.name 'author_name' end end end end
Version data entries
13 entries across 13 versions & 6 rubygems