Thursday 15 March 2012

ruby on rails - flickr-fu simple example not working -


I am using flickr-fu gem inside a Rail application for flickr api integration. I am following sample code to set up a web app shown below:

  def flickr_create flickr = flickr.new (file.join (RAILS_ROOT, 'config', 'flickr .iml ')) Redirect_to flickr.auth.url () is read the end DEF flickerback flicker = flickr.new (file (RAILS_ROOT,' config ',' flickr.yml ')) flickr.auth.frob = params [: Frob] current_user Update_attribute: flickr_token, flickr.auth.token.token flash [: notice] = "successfully certified with flickr" redirect_to: flickr_stream end  

I call Flickr_callback as callback method Flickr which is registered After the call authorization process.

When I try and hand over the params [: frob] to flickr.auth.frob, the problem is with the line in flickr_callback, I get the following error:

Exposing Flickr :: Ash: 0x24b3640

For 'frob =' Even if I only need 'flickr_fu' console, create a new flickr example, and assign to the frob I try to do it, I get the same error, I took a look at the source of the gem on Gitobb, and Setter Frab = Flickr :: Is set in Thulud module, so I do not know that error where the API call successfully work and are beginning to recover Flickr object.

The issue is that the gem version from Flickr-Foo ammeter or github is at 0.1.4, Setter method was not implemented until the next version was made. Instead install gem commonthread-Flickr_fu v0.3.0 from github, and frab is writable.


No comments:

Post a Comment