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 self.search what, where | |
x = Vendetta::Business.find(:all, | |
:conditions => { | |
:search_terms => what, | |
:geo_location_terms => where, | |
} | |
) | |
x.map { |y| with y } | |
end |
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
require 'nokogiri' | |
namespace :import do | |
desc "Import XML file" | |
task :xml => :environment do | |
xml_file = File.dirname(__FILE__) + "/../../db/one.xml" | |
rtf_directory = File.dirname(__FILE__) + "/../../db/txt/" | |
puts "DESTROYING! " |
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
When we agreed that the marriage | |
was over and that it would be okay | |
by each of us to pursue happiness | |
with someone else, I really had no | |
idea how much it would hurt when | |
she did. |
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
require 'test_helper' | |
class DevelopmentManagerTest < Test::Unit::TestCase | |
fixtures :development_managers | |
fixtures :teams | |
def setup | |
@candidate = development_managers(:ideal) | |
@team = teams(:web_tier) |
NewerOlder