Skip to content

Instantly share code, notes, and snippets.

Dallas Reedy dallas

Block or report user

Report or block dallas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dallas
dallas / rails31init.md
Created Sep 11, 2011 — forked from docwhat/rails31init.md
Rails 3.1 with Rspec, Factory Girl, Haml, Simple Form, Database Cleaner, Spork, and Guard
View rails31init.md

Install Rails 3.1

gem install rails

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile

@dallas
dallas / gist:176414
Created Aug 27, 2009 — forked from laserlemon/gist:175993
software install directions by laserlemon
View gist:176414
# Leopard Development Environment (from clean installation)
# Replace USERNAME with your OS X short name.
# Replace PASSWORD with your MySQL root password.
# Install XCode Tools
# Install MacPorts
# Install Textmate
# Generate an SSH key
ssh-keygen
@dallas
dallas / rails_template.rb
Created Jul 8, 2009 — forked from henrik/rails_template.rb
Rails template for v2.3 by henrik
View rails_template.rb
# Rails template for Rails 2.3. Work in progress.
# By Henrik Nyh (http://henrik.nyh.se) 2009-03-29. Public domain.
# Usage: rails myapp -m http://gist.github.com/87341.txt
META_AUTHOR = "Henrik Nyh (http://henrik.nyh.se)"
JQUERY_VERSION = "1.3.2"
APP_NAME = File.basename(Dir.pwd)
git :init
@dallas
dallas / try.rb
Created Jul 8, 2009 — forked from CodeOfficer/try.rb
TryProxy by CodeOfficer from heypanda.com
View try.rb
# courtesy of http://heypanda.com/
class TryProxy
def initialize(receiving_object)
@receiving_object = receiving_object
end
def method_missing(meth, *args, &block)
@receiving_object.nil? ? nil : @receiving_object.send(meth, *args, &block) rescue nil
end
You can’t perform that action at this time.