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
<h2>Sign up</h2> | |
<a href="/users/sign_in">Sign in</a><br /> | |
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
Started GET "/users/sign_in" for 127.0.0.1 at 2010-03-12 03:19:20 | |
Processing by Devise::SessionsController#new as HTML | |
Rendered /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/devise-d498cf3a4e1a3fef3f4f071d4feec6a489efe480-master/app/views/devise/shared/_links.erb (45.4ms) | |
Rendered /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/devise-d498cf3a4e1a3fef3f4f071d4feec6a489efe480-master/app/views/devise/sessions/new.html.erb (54.7ms) | |
Completed 200 OK in 89ms (Views: 74.1ms) | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_view/lookup_context.rb:20: [BUG] Segmentation fault | |
ruby 1.9.2dev (2010-03-03 trunk 26799) [x86_64-darwin10.2.0] | |
-- control frame ---------- | |
c:0059 p:0019 s:0303 b:0302 l:0011d8 d:000301 LAMBDA /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/ |
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
# Use this hook to configure devise mailer, warden hooks and so forth. The first | |
# four configuration values can also be set straight in your models. | |
Devise.setup do |config| | |
# Configure the e-mail address which will be shown in DeviseMailer. | |
config.mailer_sender = "kjsthree@gmail.com" | |
# ==> Configuration for :authenticatable | |
# Invoke `rake secret` and use the printed value to setup a pepper to generate | |
# the encrypted password. By default no pepper is used. | |
# config.pepper = "rake secret output" |
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
config/environment.rb:7:in `block in <top (required)>' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:438:in `_run_prepare_callbacks' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/callbacks.rb:45:in `block in call' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:429:in `_run_call_callbacks' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
/Users/kjs3/.rvm/gems/r |
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
kjs3-2:smp-rails3 kjs3$ rails server | |
=> Booting WEBrick | |
=> Rails 3.0.0.beta1 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Exiting | |
/Users/kjs3/websites/smp-rails3/config/environments/development.rb:17:in `block (2 levels) in <top (required)>': foo (RuntimeError) | |
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:428:in `_run_prepare_callbacks' | |
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize' |
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
defaults: &defaults | |
# host: localhost | |
# slaves: | |
# - host: slave1.local | |
# port: 27018 | |
# - host: slave2.local | |
# port: 27019 | |
host: <%= ENV['MONGOID_HOST'] %> | |
port: <%= ENV['MONGOID_PORT'] %> | |
username: <%= ENV['MONGOID_USERNAME'] %> |
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
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize' | |
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize' | |
mongo (1.0.1) lib/mongo/cursor.rb:362:in `construct_query_message' | |
mongo (1.0.1) lib/mongo/cursor.rb:344:in `send_initial_query' | |
mongo (1.0.1) lib/mongo/cursor.rb:322:in `refill_via_get_more' | |
mongo (1.0.1) lib/mongo/cursor.rb:317:in `num_remaining' | |
mongo (1.0.1) lib/mongo/cursor.rb:65:in `next_document' | |
mongo (1.0.1) lib/mongo/collection.rb:196:in `find_one' | |
/Users/kjs3/.rvm/gems/ruby-1.9.1-p378@smp/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collections/master.rb:15:in `block (2 levels) in <class:Master>' | |
/Users/kjs3/.rvm/gems/ruby-1.9.1-p378@smp/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collection.rb:69:in `find_one' |
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
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize' | |
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize' | |
mongo (1.0.1) lib/mongo/cursor.rb:362:in `construct_query_message' | |
mongo (1.0.1) lib/mongo/cursor.rb:344:in `send_initial_query' | |
mongo (1.0.1) lib/mongo/cursor.rb:322:in `refill_via_get_more' | |
mongo (1.0.1) lib/mongo/cursor.rb:317:in `num_remaining' | |
mongo (1.0.1) lib/mongo/cursor.rb:65:in `next_document' | |
mongo (1.0.1) lib/mongo/collection.rb:196:in `find_one' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head@smp2/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collections/master.rb:15:in `block (2 levels) in <class:Master>' | |
/Users/kjs3/.rvm/gems/ruby-1.9.2-head@smp2/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collection.rb:69:in `find_one' |
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 'right_aws.rb' | |
@amz_public_key = 'myaccesskey' # S3 Public key | |
@amz_private_key = 'mysecretaccesskey' # S3 Private key | |
# You need to create a key/pair to do much of anything with aws. You can do this by going to | |
# http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key and clicking | |
# on the Key Pairs tab | |
@key_id = 'keyID' # Key ID from AWS (not the EC2 key/pairs) |
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 Event < ActiveRecord::Base | |
belongs_to :event_category | |
has_many :line_items | |
has_many :region_links, :as => :region_linkable | |
has_many :regions, :through => :region_links | |
has_many :interest_links, :as => :interest_linkable | |
has_many :interests, :through => :interest_links |