Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Rob Lee
RE: rflickr gem install broken ? [ reply ]  
2007-01-29 22:36
To answer my own question for anybody having this problem (and there appear to be a few from looking at google)

Instead of

require_gem 'rflickr'

do

require 'flickr'

Confusingly enough ...

By: Rob Lee
rflickr gem install broken ? [ reply ]  
2007-01-28 23:36
Hi,

I installed rflickr via :

sudo gem install rflickr --remote

When I try and use it with :

#!/usr/bin/env ruby

require 'rubygems'
require_gem 'rflickr'
API_KEY = "your-api-key-goes-here"
SHARED_SECRET = "your-shared-secret-goes-here"

flickr = Flickr.new("/tmp/flickr.cache", API_KEY, SHARED_SECRET)


I get an error :

/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1948:in `const_missing': uninitialized constant Flickr (NameError)

Have I missed something or is this broken ?