Sorry this page looks weird. It was automatically migrated from my old blog, which had a different layout and different CSS.

Note to self: links in Atom feeds

There are two ways to refer to a resource in an Atom feed.

So for example if you are using Rails' atom_feed helper, author blocks should look like: do |author| 'Andy Stewart'
    author.uri ''

The helper will generate <link/> elements whenever you use the :url or :root_url options.

You can validate your Atom feeds with the Feed Validator. Your feed needs to be publicly available to use the web version of the validator. Alternatively you can run the validator locally if you have Python.

Andrew Stewart • 21 March 2009 • RailsNotes To Self
You can reach me by email or on Twitter.