Skip to navigation

Resource feeder rocks

Published September 18, 2006

The new resource feeder plugin works a treat:


  def index
    feed_options = {
      :feed => {
        :title       => "Comments on '#{@tag}'",
        :description => "Comments made by Web Connections users on the tag '#{@tag}'",
        :link        => tag_url(@tag),
        :language    => 'en-au'
      },
      :item => {
        :title => :feed_title,
        :description => :body_html,
        :link => lambda { |r| tag_url(:id => @tag, :anchor => "comment-#{r.id}") }
      }
    }
    respond_to do |format|
      format.rss  { render_rss_feed_for @tag.messages, feed_options }
      format.atom { render_atom_feed_for @tag.messages, feed_options }
    end
  end

Thoughts

toolmantim

I’m Tim Lucas, a user experience developer currently in Sydney Australia.

I occasionally write, snap photos, present on various technical topics, tweet my going-ons, share teh codes and post tidbits to the scrapbook.

Most recently I published Simplifying ticket sales on sydneyoperahouse.com (February 16, 2010)

Work with me via Agency Rainford, or shoot an email to and say hello.

Powered by social networks