This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |