I had the same issue, I had to modify the flickr.rb code. Replace the
photos method in the User class with:
opts['user_id'] = @id
|photo| Photo.new(photo[‘id’]) }
# what about non-public photos?
Then call it like this:
Make sure you pass the parameters as a Hash and the per_page value is a
string and not a numeric value otherwise you will get a FixNum
What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.
My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com
----- Original Message ----
From: Damien T. [email protected]
To: [email protected]
Sent: Saturday, June 24, 2006 6:27:38 AM
Subject: [Rails] using flickr.rb
Does anyone have any experience with using flickr.rb? Seems the only
thing which is documented for it is searching through your photos.
Anyway, all I’m trying to do is return a list of my 20 most recent
photos, but nothing seems to work.
doing this returns 100 photos for a given user (which takes all day to
@flickr = Flickr.new ‘API KEY’
@user = @flickr.users(‘USERNAME’)
render :partial => “/posts/photo”, :collection => @user.photos
if I try to add options to @user.photos like (:per_page => 20) it