# Trying to impliment the Rails Flickr screen cast

**URL:** <https://www.ruby-forum.com/t/trying-to-impliment-the-rails-flickr-screen-cast/104377>\
**Category:** Rails\
**Created:** [May 17, 2007, 11:18am UTC](https://www.ruby-forum.com/t/trying-to-impliment-the-rails-flickr-screen-cast/104377 "2007-05-17T11:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 17, 2007, 11:18am UTC](https://www.ruby-forum.com/t/trying-to-impliment-the-rails-flickr-screen-cast/104377/1 "2007-05-17T11:18:16Z")

</div>

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.
