Forum: Ruby on Rails rss maker make issue - Please help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
904f6c57c91af135ec3bafe16c4feaf2?d=identicon&s=25 Mike Bh (mike2009)
on 2009-03-16 14:57
I am a RoR newbie.
I have a problem with getting the rss content when using rss:maker.make
(using rails 2.2.2 and Ruby 1.8). I am trying to get the full XML
definition to be written to a file. When I try it locally it works fine
and I get the data in the content object. However, when I try this on a
hosted environment content does not contain any data. Also when I output
the object using object.inspect, the content object look different.

     content = RSS::Maker.make('2.0') do |m| = @mychannel.title = = @mychannel.description
        m.items.do_sort = true # sort items by date
           for myfeed in @myfeeds
               puts "new items found"
                i = m.items.new_item
                    i.title = myfeed.title
                    i.description = myfeed.description
           = ""
           = Time.parse(myfeed.created_at.to_s)
          puts content.inspect
 ,"w") do |f|
object inspection
#<RSS::Rss:0xcf730a8 @converter=nil, @rss_version="2.0",
@do_validate=true, @version="1.0", @encoding="UTF-8",
@xml_stylesheets=[], @channel=#<RSS::Rss::Channel:0xcf7306c @title.

#<RSS::Rss:0x2b427c218948 @output_encoding=nil, @standalone=nil,
@version="1.0", @feed_version="2.0", @do_validate=true, @converter=nil,
@parent=nil, @feed_subtype=nil, @feed_type="rss", @xml_stylesheets=[],
@channel=#<RSS::Rss::Channel:0x2b427c2186a0 @dc_language=[], @ttl=nil,
@docs=nil, @dc_rights=[], @dc_description=[], @dc_coverage=[],
@category=[], @itunes_block=nil, @itunes_owner=nil, @generator=nil,
This topic is locked and can not be replied to.