Forum: Ruby on Rails flickr.rb won't accept tags with only one photo

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.
4171f98db58e0755ebd3119acacc3b02?d=identicon&s=25 Stegg (Guest)
on 2007-04-11 02:45
(Received via mailing list)
I have been playing around with flickr.rb for the photos section of my
website, and it's been going well except for one hitch.  Whenever I
try to grab the photos from my flickr acount by tag, and there is only
one photo associated with that tag, I get a "Can't convert String to
Int" exception.

The code is as follows:

@photo_test = @user.tag('tag_with_one_photo')


When I query with a tag for which there is only one photo, I get the
exception.  Otherwise, it works just fine.  The exceptions are
happening on line 103 of flickr.rb, so I think this may be a bug.  If
anyone knows anything about this or can help me out I would greatly
appreciate it.
This topic is locked and can not be replied to.