This file contains hidden or 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
shackserv@gob:~/shared/cached-copy$ ssh -vvv [email protected] | |
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009 | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to github.com [207.97.227.239] port 22. | |
debug1: Connection established. | |
debug1: identity file /var/www/estately/.ssh/identity type -1 | |
debug1: identity file /var/www/estately/.ssh/id_rsa type -1 | |
debug1: identity file /var/www/estately/.ssh/id_dsa type -1 |
This file contains hidden or 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
jesse:~ jesse$ ssh -vvv -A [email protected] | |
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to gob.estately.com [216.168.44.242] port 22. | |
debug1: Connection established. | |
debug3: Not a RSA1 key file /Users/jesse/.ssh/id_rsa. | |
debug2: key_type_from_name: unknown key type '-----BEGIN' | |
debug3: key_read: missing keytype |
This file contains hidden or 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
describe Tour do | |
describe '#each' do | |
it "should be enumerable on it's request_showings" do | |
t = Factory(:tour) | |
3.times do | |
t.request_showings.create(:property => Factory(:property)) | |
end | |
t.count.should be 3 |
This file contains hidden or 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
if params[:have_showing_request].present? | |
if params[:have_showing_request] == 'yes' | |
scope.have_showing_request | |
elsif params[:have_showing_request] == 'no' | |
scope.does_not_have_showing_request | |
end | |
end |
This file contains hidden or 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
class AddMailedFlagToTours < ActiveRecord::Migration | |
def self.up | |
add_column :tours, :mailed, :boolean, {:null => false, :default => false} | |
end | |
def self.down | |
remove_column :tours, :mailed | |
end | |
end |
This file contains hidden or 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 'spec/spec_helper' | |
describe AuthenticatedSystem do | |
class TestClass < ApplicationController | |
include AuthenticatedSystem | |
def initialize(user) | |
@user = user | |
end | |
def session |
This file contains hidden or 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 td(styles='font-size:12px;', attributes='valign="top"', &block) | |
"<td #{attributes} style=\"color:#666; font-family: Arial, Helvetica, FreeSans, Clean, sans-serif; line-height:18px; #{styles}\">" << | |
capture(&block) << | |
"</td>".html_safe | |
end | |
def h1(&block) | |
content = "<h1 style=\"font-family:'Trebuchet MS', Tahoma, Verdana, sans-serif; font-size:20px; margin:0; padding:0 0 4px\">" | |
content << capture(&block) | |
content << "</h1>" |
This file contains hidden or 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
diff --git a/app/models/property_mixins/property_pricing.rb b/app/models/property_mixins/property_pricing.rb | |
index ada5f95..c6210ab 100644 | |
--- a/app/models/property_mixins/property_pricing.rb | |
+++ b/app/models/property_mixins/property_pricing.rb | |
@@ -1,4 +1,6 @@ | |
module PropertyPricing | |
+ include ActionView::Helpers::NumberHelper | |
+ | |
def price | |
if sold? && read_attribute(:sp) |
This file contains hidden or 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
class BrandedSavedSearchMailer < ActionMailer::Base | |
def email(agent, client) | |
end | |
end | |
require 'spec_helper' | |
describe BrandedSavedSearchMailer do |
This file contains hidden or 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 default_image_size | |
320 | |
end | |
def image_style | |
"margin: 0;padding: 0;border: 0; max-width: 560px; height: auto;line-height: 100%;outline: none;text-decoration: none;" | |
end | |
def fallback_image_tag | |
content_tag(:img, |
OlderNewer