I'm trying to use the SimpleRSS gem. So far, I've followed the instructions for freezing my gems. I have gems in ~/.gems and have unpacked them to ~/testhelper/vendor
I am trying to call this code from application helper:
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
def woof
#"woofy the dog"
require 'rubygems'
#require 'simple-rss'
# gem 'simple-rss'
# require 'open-uri'
rss = SimpleRSS.parse open( http://slashdot.org/index.rdf')
rss.channel.title # => "Slashdot"
rss.channel.link # => "http://slashdot.org/"
rss.items.first.link # => "http://books.slashdot.org/article.pl?sid=05/08/29/1319236&fro\
m=rss"
end
end
When I do that, I get this error:
uninitialized constant ApplicationHelper::SimpleRSS
Now, I'm getting a "We're sorry, but something went wrong" message.
Any thoughts? On my local system and on my old server, I had the gems installed globally, not in the rails application, so I'm having problems with this migration.
TIA,
Sean