 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Billy Hsu
RE: About rflickr in Rails [ reply ] 2007-01-01 02:40
|
By the way, I found that if I
flickr = Flickr.new("C:\\flickr-token")
flickr.auth.getFrob
photos = Flickr::Photos.new(flickr)
tags = photos.search( nil, "lover")
render :partial => "show", :collection => tags
Then I coded this in _show.rhtml
<h3><%= show.description %></h3>
It didn't display the descriptions of those pictures.
And I check this in console, it shows me that "description=nil"
Could anyone help me? Thanks a lot.
Happy new year!
|
By: Billy Hsu
About rflickr in Rails [ reply ] 2006-12-31 13:21
|
Happy new year!!
I'm sorry, because I don't know how to get token in Rails application.
I've try these:
class FlickrController < ApplicationController
def index
flickr = Flickr.new("./flickr-token")
flickr.auth.getFrob
render :text => flickr.people.findByUsername("skycfc")
end
end
But it returned me:
You have a nil object when you didn't expect it!
The error occured while evaluating nil.token
And I can't find the API Document of rflickr..
Could anyone help me? Thanks a lot!
|
|
 |