search for: fix_control

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

Did you mean: cid_control
2010 Mar 18
5
One-time script to update 1000s of values in a single column in a table: nil error?
Hi, I have a model called Stock with a value called "strength." I wrote a simple method in the Stock.rb model file to update the value of "strength" for each record in the stocks table. I created a controller called fix_controller.rb. I don''t have access to the live system, so the idea is that an admin will go to http://url/fix and a script will run to check and potentially update the "strength" value for every record in the stocks table. fix_controller.rb ^^^^^^^^^^^^^^^ class FixController < Appli...