title: Can I or SHOULD I find an object by the object_id attribute in ruby?
body: <p>When I make a new object, let's say</p>
  
  <pre><code>o = Object.new
  </code></pre>
  
  <p>This object has an id,</p>
  
  <pre><code>o.object_id 
  #=&gt; ########
  </code></pre>
  
  <p>I also make several other objects, using the Object class. What would be the best way to have ruby find the object 'o' by using the object_id attribute? I am thinking in terms of something like</p>
  
  <pre><code>search_id = o.object_id
  search_result = Object.find(search_id)
  </code></pre>
  
  <p>Where 'search_results' would be the object corresponding to 'search_id'. Also, I would definitely appreciate an altogether different approach to indexing objects and retrieving them by a guid or something. Thanks so much!</p>
  
  <p>Hah, well I guess I really just need to think about this in the context of a database and just use MySQL queries or those of whatever DB I choose to find the object. The more I think about it, the only possible things that would be accessible through this imaginary 'find()' method would be things that are newly created or 'active'? Sorry for making this a crappy question.</p>