# Rss maker make issue - Please help

**URL:** <https://www.ruby-forum.com/t/rss-maker-make-issue-please-help/163003>\
**Category:** Rails\
**Created:** [March 16, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/rss-maker-make-issue-please-help/163003 "2009-03-16T14:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asplake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@asplake](https://www.ruby-forum.com/u/asplake)\
**Post date:** [March 16, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/rss-maker-make-issue-please-help/163003/1 "2009-03-16T14:57:36Z")

</div>

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.

Code:  
content = RSS::Maker.make(‘2.0’) do |m|  
m.channel.title = @mychannel.title  
m.channel.link = @mychannel.link  
m.channel.description = @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  
i.link = “”  
i.date = Time.parse(myfeed.created\_at.to\_s)  
end  
end  
puts content.inspect  
File.open(destination,“w”) do |f|  
f.write(content.to\_xml)  
end  
object inspection  
Locally,  
#\<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.  
…

Hosted,  
#\<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,  
@image=nil,…
