title: Rails: Get placement of records?
body: <p>Say I've got a <code>Questions</code> and <code>Answer</code> model and I pull all the answers to a specific question.</p>
  
  <p>I can easily do an <code>each_with_index</code> to and figure out what the index or "placement" of an answer is (in relation to the other answers to that specific question).</p>
  
  <p>But, say I want to get a specific answer...how could I still figure out what the index of that answer is in relation to all the other answers associated with a specific question.</p>
  
  <p>Example <code>Answer</code> data:</p>
  
  <pre><code>ID  text      question_id
  23  awesome   3
  27  boooyah   3
  38  snap      3
  </code></pre>
  
  <p>If I did <code>Answer.find(27)</code> how can I figure out that record is the second item (assuming I'm ordering by ID...though I could order by any field).</p>