Skip to content

Instantly share code, notes, and snippets.

photo = {
"id"=>"4603763705",
"secret"=>"278771b8d6",
"server"=>"1369",
"farm"=>2,
"dateuploaded"=>"1273767852",
"isfavorite"=>0,
"license"=>"0",
"rotation"=>0,
"owner"=>{
{
"version"=>"1.0",
"encoding"=>"UTF-8",
"entry"=>{
"xmlns$app"=>"http://www.w3.org/2007/app",
"xmlns"=>"http://www.w3.org/2005/Atom",
"xmlns$media"=>"http://search.yahoo.com/mrss/",
"xmlns$gd"=>"http://schemas.google.com/g/2005",
"xmlns$yt"=>"http://gdata.youtube.com/schemas/2007",
"gd$etag"=>"W/\"CUEHQ347eCp7ImA9WxFXEk0.\"",
{
"version"=>"1.0",
"encoding"=>"UTF-8",
"entry"=>{
"xmlns"=>"http://www.w3.org/2005/Atom",
"xmlns$media"=>"http://search.yahoo.com/mrss/",
"xmlns$gd"=>"http://schemas.google.com/g/2005",
"xmlns$yt"=>"http://gdata.youtube.com/schemas/2007",
"id"=>{
"$t"=>"http://gdata.youtube.com/feeds/api/videos/_tkX8Re7ITA"
require "spec_helper"
describe Mongoid::Associations do
before do
Person.collection.remove
end
context "embeds_one" do
/Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require': can't convert Pathname into String (TypeError)
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `block in require'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:207:in `load_dependency'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/remarkable_activemodel-4.0.0.alpha4/lib/remarkable/active_model.rb:11:in `block in <top (required)>'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/remarkable_activemodel-4.0.0.alpha4/lib/remarkable/active_model.rb:10:in `each'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/remarkable_activemodel-4.0.0.alpha4/lib/remarkable/active_model.rb:10:in `<top (required)>'
from /Users/evan/.rvm/gems/ruby-1.9.2-rc2/gems/activesu
** [out :: 69.167.141.126] (in /var/apps/rails/build.infinite.ly/releases/20100817100648)
** [out :: 69.167.141.126] An error occured trying to connect to MongoDB!
** [out :: 69.167.141.126] Generating indexes for Account
** [out :: 69.167.141.126] rake aborted!
** [out :: 69.167.141.126]
** [out :: 69.167.141.126] undefined method `insert' for nil:NilClass
** [out :: 69.167.141.126]
** [out :: 69.167.141.126] /var/apps/rails/build.infinite.ly/releases/20100817100648/config/initializers/logger.rb:18:in `block (2 levels) in singletonclass'
Started GET "/evan/evan/facebook/connect" for 112.201.204.21 at 2010-08-27 07:06:43 +0000
Processing by SocialNetworks::FacebookController#connect as HTML
Parameters: {"account_id"=>"evan", "site_id"=>"evan"}
MONGODB infinitely['accounts'].find({:name=>"evan"}, {}).limit(-1)
MONGODB infinitely['sites'].find({:subdomain=>"evan"}, {}).limit(-1)
MONGODB infinitely['users'].find({:_id=>BSON::ObjectID('4c58e2a207b97f6e44000512')}, {}).limit(-1)
Completed in 33ms
Sending request to http://hoptoadapp.com/notifier_api/v2/notices/:
<?xml version="1.0" encoding="UTF-8"?><notice version="2.0"><api-key>4b2b76558cb87a6a712aacfffc4eb980</api-key><notifier><name>Hoptoad Notifier</name><version>2.3.5</version><url>http://hoptoadapp.com</url></notifier><error><class>LoadError</class><message>LoadError: no such file to load -- faraday/connection</message><backtrace><line number="38" file="[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/oauth2-0.0.13/lib/oauth2/client.rb" method="initialize"/><line number="96" file="[P
{
"_id": "4c91e31e4d9c67cb35000140",
"account_id": "4c8f37b74d9c67368b0000ac",
"anchor": "",
"attachment_filename": "slimecitysmallsizeposter.jpg",
"background_attachment_url": null,
"canned": false,
"created_at": "2010-09-16T09:27:58Z",
"creator_id": "4c8f37b44d9c67368b0000ab",
"data": {
@evansagge
evansagge / gist:964632
Created May 10, 2011 15:01
resque-web error log
ArgumentError: file or block required
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/tilt-1.3/lib/tilt/template.rb:50:in `initialize'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.1.3/lib/sinatra/base.rb:514:in `new'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.1.3/lib/sinatra/base.rb:514:in `block in compile_template'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/tilt-1.3/lib/tilt.rb:129:in `fetch'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.1.3/lib/sinatra/base.rb:496:in `compile_template'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.1.3/lib/sinatra/base.rb:480:in `render'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.1.3/lib/sinatra/base.rb:389:in `erb'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/resque-1.15.0/lib/resque/server.rb:122:in `show'
/Users/evan/.rvm/gems/ruby-1.9.2-head/gems/resque-1.15.0/lib/resque/server.rb:135:in `block (2 levels) in <class:Server>'
<form accept-charset="UTF-8" action="/login" class="simple_form user" method="post">
  <div style="margin:0;padding:0;display:inline">
    <input name="utf8" type="hidden" value="&#x2713;" />
    <input name="authenticity_token" type="hidden" value="gOSX42nc1PcezB8XSuY+aiKSpQZs46un3ZaYpxBI22I=" />
  </div>
  <div class="input string email required">
    <label class="email required" for="user_email">
      <abbr title="required">*</abbr> Email
    </label>