Skip to content

Instantly share code, notes, and snippets.

Isaac Su isaacsu

Block or report user

Report or block isaacsu

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
@zachwaugh
zachwaugh / gist:521133
Created Aug 12, 2010
Loading rails environment in a script
View gist:521133
#!/usr/bin/env ruby
# Load Rails
ENV['RAILS_ENV'] = ARGV[0] || 'production'
DIR = File.dirname(__FILE__)
require DIR + '/../config/environment'
# ... do stuff that requires using your rails models
You can’t perform that action at this time.