search for: trans_actions

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

Did you mean: trans_action
2006 Mar 21
8
Loading the contents of a CSV file to a database
...In addition to the generated admin_controller.rb file containing list, update etc i put def csv_preview require ''faster_csv'' @csv_trans_action = FasterCSV.read("c:/nugget/statement.csv") end def csv_load require ''faster_csv'' @csv_trans_actions = FasterCSV.read("c:/nugget/statement.csv") for trans_action in @trans_actions for csv_trans_action in @csv_trans_actions trans_action.trans_date_at = csv_trans_action[0] trans_action.description = csv_trans_action[1] trans_action.amount = c...