Skip to content

Instantly share code, notes, and snippets.

@zapatoche
Created November 12, 2011 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zapatoche/1361107 to your computer and use it in GitHub Desktop.
Save zapatoche/1361107 to your computer and use it in GitHub Desktop.
mongoid no method error
NoMethodError in EventsController#update
undefined method `extract_id' for "test":String
Rails.root: /Users/yannick/Dropbox/projects/play/demo
Application Trace | Framework Trace | Full Trace
app/controllers/events_controller.rb:49:in `update'
Request
Parameters:
{"utf8"=>"✓",
"_method"=>"put",
"authenticity_token"=>"OYdrpsvPHL6633IJJGICkRKSvY1jSsv8IAYtJrg87iU=",
"event"=>{"name"=>"Afro Cuban Lounge",
"description"=>"big big party!!!",
"venue_id"=>"4eb2fb49c25ed1214b000008",
"date(1i)"=>"2011",
"date(2i)"=>"11",
"date(3i)"=>"3",
"date(4i)"=>"09",
"date(5i)"=>"40",
"lessons"=>{"name"=>"test"}},
"commit"=>"Save",
"id"=>"afro-cuban-lounge"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment