Forum: Ruby on Rails Trying to impliment the Rails Flickr screen cast

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dave M (Guest)
on 2007-05-17 13:18
(Received via mailing list)
I am trying to experiment with Flickr so I am following the screen
cast on the Rails web site.

I have installed the flickr gem and got an API key from flickr. I am
having an issue when I try to run the example though as I am told that
my API key has expired. As I only got it about 20 minutes before
writing this I find that hard to take.

Here is a copy of the error message.

Showing app/views/flickr/_photo.rhtml where line #1 raised:
Invalid API Key (Key has expired)
Extracted source (around line #1):
1: <img class="photo" src=<%= photo.sizes[0]['source'] %>">

/usr/local/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:67:in
`request'
/usr/local/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in
`method_missing'
/usr/local/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:350:in
`sizes'
#{RAILS_ROOT}/app/views/flickr/_photo.rhtml:1:in
`_run_rhtml_47app47views47flickr47_photo46rhtml'
app/controllers/flickr_controller.rb:5:in `search'

Has anybody got any Ideas as to what the problem is?

Thanks,

Daivd.
This topic is locked and can not be replied to.