title: Rails 3: How to get an array of all people "name"s?
body: <p><code>Person</code> model has a <code>name</code> field. </p>
  
  <p>I would like to get an array of all people names.</p>
  
  <p>If several people have the same name, I would like it to appear only once in the array.</p>
  
  <p>I built the array this way:</p>
  
  <pre><code>Person.all.map{ |p| p.name }.uniq
  </code></pre>
  
  <p>Is there a better/more efficient way to do this ?</p>