search for: tsosoffense

Displaying 2 results from an estimated 2 matches for "tsosoffense".

2009 Jul 16
9
Please help me understand how arrays are translated in rails
...#39;'ve been trying to do and perhaps you can explain to me how I "should" be doing it rather than the way I have been trying to do it: Summary: Rake task is being used to pull data, calculate data, and save data. In my rake file I am performing the following: update_tsos_offense = TsosOffense.new update_tsos_offense.calculate_tsos(TotalOffense, "ydspgm", to_team_id, to_value) This creates a new object in TsosOffense. The method it''s calling is the one I posted above that I''m having some difficulties with. I''m supplying the model name, the field, a...
2009 Jul 17
19
I need help saving table data from a rake task
I need to find out how I can create and save a large dataset to a table based on multiple returned arrays from a Rake task. Here is my example using just two arrays (there are 14 in this particular rake task): update_tsos_offense = TsosOffense.new to_team_id, to_ppcs = update_tsos_offense.calculate_tsos(TotalOffense, "ydspgm", "desc") ro_team_id, ro_ppcs = update_tsos_offense.calculate_tsos(RushingOffense, "ydspg", "desc") This task starts with creating a new object (TsosOffense) which is the mode...