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