search for: extecut

Displaying 1 result from an estimated 1 matches for "extecut".

Did you mean: execut
2006 Jan 17
4
find_by_sql column ordering defect?
...t; @objs = Project.find_by_sql(sqlstatement) the breakpointer tells me that: irb(#<ProjectsController:0x2aaaacb3aa80>):001:0> sqlstatement => "select name, begin_date, projected_end_date, actual_end_date from projects" which is the correct 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&quot...