Skip to content

Instantly share code, notes, and snippets.

@felipemesquita
Created July 29, 2012 19:39
Show Gist options
  • Save felipemesquita/3201373 to your computer and use it in GitHub Desktop.
Save felipemesquita/3201373 to your computer and use it in GitHub Desktop.
Started PUT "/users/501417f693a8299573000001/profile.501558af93a8298b18000004" for 127.0.0.1 at 2012-07-29 16:34:38 -0300
Processing by ProfilesController#update as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FysnyoQHpHlkSmakkvr14/2yIRuTETA3akbmBTJHiVw=", "profile"=>{"experiences_attributes"=>{"50156f5893a8293a1f000001"=>{"role"=>"Gerente 3", "company_name"=>"", "started_at(3i)"=>"1", "started_at(2i)"=>"1", "started_at(1i)"=>"2012", "finished_at(3i)"=>"1", "finished_at(2i)"=>"1", "finished_at(1i)"=>"2012", "summary"=>"", "id"=>"50156f5893a8293a1f000001"}}}, "commit"=>"Salvar", "user_id"=>"501417f693a8299573000001"}
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.3431ms)
MOPED: 127.0.0.1:27017 QUERY database=globo_resume_development collection=users selector={"$query"=>{"_id"=>"501417f693a8299573000001"}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 fields=nil (0.3459ms)
MOPED: 127.0.0.1:27017 QUERY database=globo_resume_development collection=users selector={"_id"=>"501417f693a8299573000001"} flags=[] limit=0 skip=0 fields=nil (0.3941ms)
MOPED: 127.0.0.1:27017 QUERY database=globo_resume_development collection=profiles selector={"$query"=>{"user_id"=>"501417f693a8299573000001"}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 fields=nil (0.4849ms)
MOPED: 127.0.0.1:27017 QUERY database=globo_resume_development collection=roles selector={"$query"=>{"name"=>"Gerente 3"}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 fields=nil (0.4733ms)
MOPED: 127.0.0.1:27017 INSERT database=globo_resume_development collection=roles documents=[{"_id"=>"5015904e93a8295e23000001", "name"=>"Gerente 3", "updated_at"=>2012-07-29 19:34:38 UTC, "created_at"=>2012-07-29 19:34:38 UTC}] flags=[]
COMMAND database=admin command={:getlasterror=>1, :safe=>true} (0.7880ms)
MOPED: 127.0.0.1:27017 COMMAND database=globo_resume_development command={:count=>:profiles, :query=>{"experiences.role"=>"Gerente 3"}} (0.5429ms)
MOPED: 127.0.0.1:27017 QUERY database=globo_resume_development collection=companies selector={"$query"=>{"name"=>""}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 fields=nil (0.4139ms)
MOPED: 127.0.0.1:27017 COMMAND database=globo_resume_development command={:count=>:profiles, :query=>{"experiences.company_name"=>""}} (0.2859ms)
MOPED: 127.0.0.1:27017 UPDATE database=globo_resume_development collection=profiles selector={"_id"=>"501558af93a8298b18000004"} update={"$set"=>{"updated_at"=>2012-07-29 19:34:38 UTC, "experiences.globo_development.role"=>"Gerente 3", "experiences.globo_development.company_name"=>"", "experiences.globo_development.summary"=>"", "experiences.globo_development.started_at"=>2012-01-01 00:00:00 UTC, "experiences.globo_development.finished_at"=>2012-01-01 00:00:00 UTC, "experiences.globo_development._type"=>"experience", "experiences.globo_development.updated_at"=>2012-07-29 19:34:38 UTC}} flags=[]
COMMAND database=admin command={:getlasterror=>1, :safe=>true} (1.2119ms)
Completed 500 Internal Server Error in 97ms
Moped::Errors::OperationFailure (The operation: #<Moped::Protocol::Command
@length=69
@request_id=20
@response_to=0
@op_code=2004
@flags=[]
@full_collection_name="admin.$cmd"
@skip=0
@limit=-1
@selector={:getlasterror=>1, :safe=>true}
@fields=nil>
failed with error 13048: "can't append to array using string field name [globo_development]"
See https://github.com/mongodb/mongo/blob/master/docs/errors.md
for details about this error.):
app/controllers/profiles_controller.rb:12:in `update'
Rendered /Users/felipemesquita/.rvm/gems/ruby-1.9.3-p0@globo-resume/gems/actionpack-3.2.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.1ms)
Rendered /Users/felipemesquita/.rvm/gems/ruby-1.9.3-p0@globo-resume/gems/actionpack-3.2.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
Rendered /Users/felipemesquita/.rvm/gems/ruby-1.9.3-p0@globo-resume/gems/actionpack-3.2.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment