Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created March 5, 2014 22:59
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 ovnicraft/9378513 to your computer and use it in GitHub Desktop.
Save ovnicraft/9378513 to your computer and use it in GitHub Desktop.
Document not found for class User with attributes {:external_id=>"36"}.
\nSummary:\n When calling User.find_by with a hash of attributes,
all attributes provided must match a document in the database or this error will be raised.
\nResolution:\n
Search for attributes that are in the database or set the Mongoid.raise_not_found_error configuration option to false,
which will cause a nil to be returned instead of raising this error.&gt;</div></td>\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment