Displaying 1 result from an estimated 1 matches for "contract168_schedul".
Did you mean:
contract168_schedules
2007 Sep 06
2
HABTM Loops
...uot;week = ''#{@woy}''")
@contract4_schedules = Hour.find(4).schedules.find(:all, :conditions
=> "week = ''#{@woy}''")
@contract5_schedules = Hour.find(5).schedules.find(:all, :conditions
=> "week = ''#{@woy}''")
etc...
@contract168_schedules =
Hour.find(168).schedules.find(:all, :conditions => "week = ''#{@woy}''")
@woy is a calculated value for next week and is compared to the week
number stored with the parent schedule so that I can display only a
certain week at a time. Each of these queries represent...