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
source :gemcutter | |
gem 'rails', '3.0.0.beta3', :git => 'git://github.com/rails/rails.git' | |
gem "mongoid", :git => 'git://github.com/durran/mongoid.git' | |
gem "bson_ext", "1.0.1" | |
gem 'devise', :git => 'http://github.com/plataformatec/devise.git', :branch => 'master' | |
#gem 'mongo_session_store', :git => 'git://github.com/nicolaracco/mongo_session_store.git' | |
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 File.expand_path('../boot', __FILE__) | |
require 'uri' | |
if ENV['MONGOHQ_URL'] | |
mongo_uri = URI.parse(ENV['MONGOHQ_URL']) | |
ENV['MONGOID_HOST'] = mongo_uri.host | |
ENV['MONGOID_PORT'] = mongo_uri.port.to_s | |
ENV['MONGOID_USERNAME'] = mongo_uri.user | |
ENV['MONGOID_PASSWORD'] = mongo_uri.password | |
ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub("/", "") |
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
/data/arcticelvis/releases/20100428192000/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract /connection_pool.rb:198:in `checkout': could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it. (ActiveRecord::ConnectionTimeoutError) |
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
christian@christian-laptop:~/.ssh$ ssh -vvv [email protected] -i ~/.ssh/localhost-key | |
OpenSSH_5.1p1 Debian-3ubuntu1, OpenSSL 0.9.8g 19 Oct 2007 | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to 174.129.41.106 [174.129.41.106] port 22. | |
debug1: Connection established. | |
debug3: Not a RSA1 key file /home/christian/.ssh/localhost-key. | |
debug2: key_type_from_name: unknown key type '-----BEGIN' | |
debug3: key_read: missing keytype |
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
in account model: | |
accepts_nested_attributes_for :from_adrs, :allow_destroy => true | |
in from_adr model: | |
validates_format_of :email, | |
:with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, | |
:message => 'email must be valid' | |
form: | |
<%form_for @account do |f|%> |
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
<div id="widget"></div> | |
<script src="http://yourapp.com/widget.js?element=widget"></script> |
NewerOlder