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
['name', 'email', 'website', 'captcha_solution'].each do |field| | |
it "should show the #{field} field" do | |
render '/comments/_form' | |
response.should have_tag("input#comment_#{field}") | |
end | |
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
randy $ git blame app/models/organization.rb | |
017f45b4 (Ron Lusk 2008-01-10 05:41:38 +0000 1) class Organization < ActiveRecord::Base | |
017f45b4 (Ron Lusk 2008-01-10 05:41:38 +0000 2) set_table_name 'org_prefs' | |
db80906a (Randy Schmidt 2008-08-17 00:31:13 +0000 3) validates_uniqueness_of :sfdc_id, :s3_bucket_name, :allow_blank => true | |
16dc1146 (Chris Conley 2008-07-17 14:53:05 +0000 4) serialize :test_types | |
be980649 (Randy Schmidt 2008-08-16 22:28:32 +0000 5) | |
be980649 (Randy Schmidt 2008-08-16 22:28:32 +0000 6) validates_presence_of :display_name, :short_name, :time_zone | |
be980649 (Randy Schmidt 2008-08-16 22:28:32 +0000 7) validates_presence_of :sfdc_id, :sfdc_username, :sfdc_password, :sfdc_token | |
be980649 (Randy Schmidt 2008-08-16 22:28:32 +0000 8) validates_presence_of :s3_access_key_id, :s3_secret_access_key, :s3_bucket_name | |
011a7e81 (Chris Conley 2008-11-11 20:27:47 +0000 9) validates_presence_of :min_number_of_enrollments, :min_number_of_test_scores, :min_number_ |
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 'timeout' | |
class Twitter | |
def initialize(username, password) | |
@username = username | |
@password = password | |
end | |
def url | |
@url ||= URI.parse("http://twitter.com/statuses/update.xml") | |
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
<VirtualHost *:80> | |
ServerName isfeasting.com | |
ServerAlias *.isfeasting.com | |
DocumentRoot /home/deploy/public_html/isfeasting/production/current/public | |
</VirtualHost> | |
# I think the settings above are preventing me from doing below | |
<VirtualHost *:80> | |
ServerName staging.isfeasting.com |
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
* g o a t s e x * g o a t s e x * g o a t s e x * | |
g g | |
o / \ \ / \ o | |
a| | \ | | a | |
t| `. | | : t | |
s` | | \| | s | |
e \ | / / \\\ --__ \\ : e | |
x \ \/ _--~~ ~--__| \ | x | |
* \ \_-~ ~-_\ | * | |
g \_ \ _.--------.______\| | g |
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 'iconv' | |
class String | |
def to_ascii | |
to_ascii_string = self | |
begin | |
result = Iconv.new("CP1250", "UTF-8").iconv(to_ascii_string) | |
rescue Iconv::IllegalSequence => e | |
puts e.failed.chars | |
failed = e.failed.chars.split(//, 2) | |
to_ascii_string = to_ascii_string.gsub(failed[0], '') |
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
$(function(){ | |
$('#add_note').livequery(function(){ | |
$(this).ajaxForm({ | |
dataType: 'script', | |
beforeSubmit: function(data, form, options) { | |
form.find('.dots').show() | |
} | |
}) | |
}) | |
} |
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
module AuditingExtensions | |
def self.included( recipient ) | |
recipient.extend( ModelClassMethods ) | |
recipient.class_eval do | |
include ModelInstanceMethods | |
end | |
end | |
module ModelClassMethods | |
def audit_me |
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 'capistrano/ext/multistage' | |
load "config/deploy/#{ARGV.first}" | |
role :web, domain | |
role :app, domain | |
role :db, domain, :primary => true | |
set :application, "isfeasting" | |
set :deploy_to, "/home/deploy/public_html/#{application}/#{environment}" | |
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
Frank E. Fish, Ph.D. | |
Professor of Biology | |
Department of Biology | |
Liquid Life Laboratory | |
750 S. Church St. | |
West Chester University | |
West Chester, PA 19383-2112 | |
USA | |