M
Mike Flint
Hi,
Does anyone know how to code an RSS maker to generate additional tags
for the header of the feed? The gem has a method for 'lastBuildDate='
but I cannot get it to work ...
************************************************
content = RSS::Maker.make(Version) do |m|
m.channel.title = "xxxx"
m.channel.link = "http://yyyyyyyy"
m.channel.description = "zzzzz"
m.channel.lastBuildDate= Time.now
************************************************
- produces:
/usr/lib/ruby/1.8/rss/0.9.rb:107:in `lastBuildDate=': value <Tue Jan 18
14:22:44 +0000 2011> of tag <lastBuildDate> is not available.
(RSS::NotAvailableValueError)
I have tried several variations with no joy, and the documentation is
not helpful.
I can't find anything that might set the ttl or copyright values.
Anyone managed to generate a full-feature RSS xml file using this?
Thanks.
Mike.
Does anyone know how to code an RSS maker to generate additional tags
for the header of the feed? The gem has a method for 'lastBuildDate='
but I cannot get it to work ...
************************************************
content = RSS::Maker.make(Version) do |m|
m.channel.title = "xxxx"
m.channel.link = "http://yyyyyyyy"
m.channel.description = "zzzzz"
m.channel.lastBuildDate= Time.now
************************************************
- produces:
/usr/lib/ruby/1.8/rss/0.9.rb:107:in `lastBuildDate=': value <Tue Jan 18
14:22:44 +0000 2011> of tag <lastBuildDate> is not available.
(RSS::NotAvailableValueError)
I have tried several variations with no joy, and the documentation is
not helpful.
I can't find anything that might set the ttl or copyright values.
Anyone managed to generate a full-feature RSS xml file using this?
Thanks.
Mike.