Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6907

Show
Ignore:
Timestamp:
05/30/07 16:48:41 (2 years ago)
Author:
david
Message:

id tag datestamps should just be the year the plugin is created [Sam Ruby/feedvalidator.org]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/atom_feed_helper/lib/atom_feed_helper.rb

    r6873 r6907  
    77 
    88    xml.feed "xml:lang" => "en-US", "xmlns" => 'http://www.w3.org/2005/Atom' do 
    9       xml.id("tag:#{request.host}:#{request.request_uri.split(".")[0].gsub("/", "")}") 
     9      xml.id("tag:#{request.host},2007:#{request.request_uri.split(".")[0].gsub("/", "")}") 
    1010       
    1111      if options[:root_url] || respond_to?(:root_url) 
     
    3030      def entry(record) 
    3131        @xml.entry do  
    32           @xml.id("tag:#{@view.request.host_with_port},#{record.created_at.xmlschema}:#{record.class}#{record.id}") 
     32          @xml.id("tag:#{@view.request.host_with_port},2007:#{record.class}#{record.id}") 
    3333          @xml.published(record.created_at.xmlschema) 
    3434          @xml.updated(record.updated_at.xmlschema) if record.respond_to?(:updated_at)