title: Mongo remove() error when passing doc _id as string using ruby
body: <pre><code>coll.remove(params[:id])
  </code></pre>
  
  <p>I pass the ID string through the URL <code>?id=546a691d7b76eb0909000001</code></p>
  
  <p>I receive the following error on the line of code:</p>
  
  <pre><code>Database command 'delete' failed: wrong type for 'q' field, expected object, found q: "546a691d7b76eb0909000001"
  </code></pre>
  
  <p>Do I need to convert the string to an ObjectID and if so how?</p>