Skip to content

Instantly share code, notes, and snippets.

@co-hack
Created January 13, 2011 10:24
Show Gist options
  • Save co-hack/777671 to your computer and use it in GitHub Desktop.
Save co-hack/777671 to your computer and use it in GitHub Desktop.
Search result always returns nil...
Reloading...
=> true
ruby-1.8.7-p174 > search = Twitter::Search.new
=> #<Search:0x7fa5c945a648 @per_page=10, @page=1, @sort_by="created_at", @q=nil, @sort_mode="descending">
ruby-1.8.7-p174 > search.containing("twitter")
=> nil
ruby-1.8.7-p174 > search = Twitter::Search.new
NameError: uninitialized constant Twitter::Search
from /home/rledge21/.rvm/gems/ruby-1.8.7-p174/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant'
from /home/rledge21/.rvm/gems/ruby-1.8.7-p174/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `rake_original_const_missing'
from /home/rledge21/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
from (irb):29
ruby-1.8.7-p174 > search.clear
=> nil
ruby-1.8.7-p174 > search
=> #<Search:0x7fa5c945a648 @per_page=10, @page=1, @sort_by="created_at", @q=nil, @sort_mode="descending">
ruby-1.8.7-p174 > search.containing("twitter")
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment