I am trying to do things the proper rails way and use the auto generated
id to refernce other tables. Now I’ve hit a wall in trying to write a
id, employee_id, code_id, … values
id, job_number, code
How can I show just the timesheets that belong to a specific job?
I would need to check the codes table and look at the jobs, so I was
thinking of something like
Timesheet.find(:all, :order => “employee_id, code_id”, :conditions
but the documentation says that :conditions is supposed to be a sql like
statement. Perhaps I need to do a join in order to get this to work?