title: Rails : Get multiple column values for single record
body: <p>I want to get <code>values</code> of multiple columns (hopefully as an array) of a single record. I have the <code>column names</code> as an array of string.</p>
  
  <p>Something like:  </p>
  
  <pre><code>Model.first.select([:id,:name,:col1,:col2]).values
  #=&gt; [1,mrudul,col1_val,col2_val]  
  
  # with column_names as array
  # Model.first.select(columns_names.map(&amp;:to_sym)).values  
  </code></pre>
  
  <p>The problem is that I've the column names as an array of string. How can I achieve this? </p>