Displaying 3 results from an estimated 3 matches for "flightdate".
2005 Nov 24
1
Log question
...5-11-24
08:18:41) [POST]
Parameters: {"action"=>"create", "controller"=>"report",
"report"=>{"flightnumber"=>"XYZ789", "id"=>"", "description"=>"CIA
flight...", "flightdate(1i)"=>"2005", "flightdate(2i)"=>"11",
"flightdate(3i)"=>"24"}}
[4;35;1mReport Columns (0.070000) SELECT COLUMN_NAME as
ColName, COLUMN_DEFAULT as DefaultValue, DATA_TYPE as ColType,
COL_LENGTH(''reports'', COLUMN...
2006 Mar 20
2
subsetting and NAs
R-help,
I'm getting some unexpected behavior with subsetting a data frame
(aircraft flight data) that I can't sort out.
Here is a simplified version of my data frame and problem:
> flight
FlightID TailNo FlightDate HobbsTime FlightCost Date year
1 4497 6009K <NA> 2.2 330.0 <NA> NA
2 4498 6009K <NA> 0.8 120.0 <NA> NA
3 4499 6009K <NA> 0.9 135.0 <NA> NA
4 4500...
2005 Nov 13
0
Problem with find and join (wrong id?)
This statement works correct in my controller (list action):
@reports = Report.find_by_sql("SELECT r.* FROM reports AS r INNER JOIN
Users AS u ON r.user_id = u.id WHERE " + cond + " ORDER BY
flightnumber, flightdate")
This statement does not:
@reports = Report.find(:all, :order => "flightnumber, flightdate",
:conditions => cond, :joins => "AS r INNER JOIN Users AS u ON
r.user_id = u.id")
All the ID:s in Show are the same for every record!
It seems u.id is used instead of r....