Skip to content

Instantly share code, notes, and snippets.

@co-hack
co-hack / Twitter Search Problem
Created January 13, 2011 10:24
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'
Factory.define :patient_family_relationship do |pfr|
pfr.association :family
pfr.association :patient
pfr.relationship 'OTH'
# slightly funnier roughly 50% of the time
pfr.other( "My Relationship With the Patient, Or, What In " +
"the Absolute Hell Was Kanye Thinking At the VMA's:\n\n" +
" It started in #{(Date.today - 75.years).year}, my first " +
"year of college. Those were simpler times, out of necessity. " +
"She and I had Spinnaker Geometry together. I loved sailing" +
def wrap_it(&block)
new_pdf = ConsoloPdf.new
beginning_y = new_pdf.y
yield new_pdf
new_pdf_height = beginning_y - new_pdf.y
self.start_new_page if self.y < new_pdf_height