Skip to content

Instantly share code, notes, and snippets.

@r38y
Created September 3, 2008 01:48
Show Gist options
  • Save r38y/8515 to your computer and use it in GitHub Desktop.
Save r38y/8515 to your computer and use it in GitHub Desktop.
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com'
config.gem 'right_aws'
# config.log_level = :debug
config.time_zone = 'UTC'
config.action_controller.session = {
:session_key => '_CHANGEME_session',
:secret => 'c6a7d48a3b8c14d33b8003f5020492f28f11f4d2b99329ac7b1b89cedfdcb9c00ddb82a28b7e189e1ae79ec7c6ce58d696f6259bded6e970a0f24a6be4c958a5'
}
end
[randy@teehee:isfeasting]$ sc
Loading development environment (Rails 2.1.0)
>> u = User.first
=> #<User id: 1, subdomain: "randy", name: "Randy Schmidt", email: "randy@umlatte.com", crypted_password: "377e07c3e0fc789b4da5a45ea704c6186ae91ef7", salt: "4c9d6c8e5f8a12f3b8352acb8bc2f53ccc62eaab", created_at: "2008-08-28 02:51:55", updated_at: "2008-09-03 01:32:01", remember_token: "c941ad38396790ce243779692e5b72bfcc122700", remember_token_expires_at: "2008-09-17 01:31:44", activation_code: nil, activated_at: "2008-08-28 02:52:54", email_token: "c41862", time_zone: "Eastern Time (US & Canada)", avatar_file_name: "avatar3.jpg", avatar_content_type: "image/jpeg", avatar_file_size: 286246, about: "Credibly communicate integrated innovation with foc...">
>> Time.zone = u.time_zone
=> "Eastern Time (US & Canada)"
>> Post.last.created_at
=> Wed Sep 03 01:43:21 UTC 2008
>> Comment.last.created_at
=> Thu, 28 Aug 2008 22:44:37 EDT -04:00
>> Post.last
=> #<Post id: 3, title: "test", photo_file_name: "DSCN0896.JPG", photo_content_type: "image/jpeg", photo_file_size: 1624857, created_at: "2008-09-03 01:43:21", updated_at: "2008-09-03 01:43:21", user_id: 1, permalink: "test">
>> Comment.last
=> #<Comment id: 22, post_id: 1, body: "Phosfluorescently foster interactive content throug...", name: "Randy", email: "randy@umlatte.com", website: nil, created_at: "2008-08-29 02:44:37", updated_at: "2008-08-29 02:44:37">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment