title: RAILS: fill Object from Array
body: <p>Array is filled from query using arbitrary SQL statement</p>
  
  <pre><code>@myarray = myObject.find_by_sql(sql)
  </code></pre>
  
  <p>SQL is designed in such way that each <code>myarray</code> item has same fields as <code>myObject</code> Model, e.g.</p>
  
  <pre><code>\#{myObject value: 100, day: 2013-06-15}
  </code></pre>
  
  <p>Ideally, I would like to have array of myObjects</p>
  
  <ol>
  <li>Filled with data from Array;</li>
  <li>Accessible for html;</li>
  <li>Not saved to the database. </li>
  </ol>
  
  <p>Is it at all possible?</p>