Displaying 1 result from an estimated 1 matches for "testprosjekt".
Did you mean:
testproject
2006 Jan 17
4
find_by_sql column ordering defect?
...rect order for the sqlstatement.
I then extecute the @objs = Project.find_by_sql(sqlstatement) statement.
The ordering of the columns has been altered - thus messing up my
headers and the order of the columns:
@objs
=> [#<Project:0x2aaaacab1dc0 @attributes={"name"=>"Mopo Testprosjekt 1",
"actual_end_date"=>nil, "projected_end_date"=>#<DateTime:
4907591/2,0,2299161>, "begin_date"=>#<DateTime:
106002130906326671/43200000000,0,2299161>}>, #<Project:0x2aaaacab1d48
@attributes={"name"=>"Unikus AS",...