Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foursquare_node.rb:13 - .blank? method requires the Rails Object #1

Open
sordyl opened this issue Jan 27, 2011 · 1 comment
Open

foursquare_node.rb:13 - .blank? method requires the Rails Object #1

sordyl opened this issue Jan 27, 2011 · 1 comment

Comments

@sordyl
Copy link

sordyl commented Jan 27, 2011

I believe the .blank? method is introduced by Rails (http://api.rubyonrails.org/classes/Object.html#method-i-blank%3F) but Rails is not a dependency for this gem.

I'm testing via irb on ruby 1.8.7 and the example from the README fails:

require "foursquare"

=> true

venue = Foursquare::Venue.new("access token")

=> #<Foursquare::Venue:0x1013ac468 @base_url="https://api.foursquare.com:443/v2/", @access_token="access token">

venue.search({:ll => "37.792694,-122.409325"})

NoMethodError: undefined method blank?' for "access token":String from /Library/Ruby/Gems/1.8/gems/foursquare-api-0.0.5/lib/foursquare_node.rb:13:inperform_graph_request'
from /Library/Ruby/Gems/1.8/gems/foursquare-api-0.0.5/lib/foursquare_venue.rb:31:in `search'
from (irb):3

@ronaldwan
Copy link
Owner

Good catch! thanks for letting me know. Ill patch this up in the next few days when im not on the road anymore.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants