open call works fine in irb but not through webrick server

require 'rss/1.0'
require 'rss/2.0'
require 'open-uri'

source = "" # url or local file
content = "" # raw content of url will be loaded here
open(source,:proxy => nil) do |s| content = end
rss = RSS::Parser.parse(content, false)

puts "Root values"
print "RSS title: ",, "\n"

irb != rails

so try this script via script/console

irb is interactive ruby console, so libraries etc could be different for
ruby and for rails

if this will work in script/console, then it will work via
mongrel/webrick as well


Karika wrote:

I tried using script/console
It still give me same error ...