Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Add #updated support to entries in atom_feed

#6649

This is minor, but important! I will explain in code, it will be easier than words. See the commented lines, the second one is currently broken (outputs invalid data):

atom_feed(:schema_date => '2008') do |feed|
  feed.title("My great blog!")
  feed.updated(@scrolls.first.created_at) # <--- This currently works

  for scroll in @scrolls
    feed.entry(scroll) do |entry|
      entry.title(scroll.title)
      entry.updated(Time.utc(2007, 1, scroll.id)) # <---- This patch allows this to work
      entry.content(scroll.body, :type => 'html')

      entry.author do |author|
        author.name("DHH")
      end
    end
  end
end

Reported by Xavier Shay · March 30th, 2011 @ 11:09 AM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.