search for: pattern_record

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

2006 Feb 06
4
Memory Issue while looping through CSV file
...ated. Anyway, I''m a little new with Ruby and Rails so if you can tell me where I''m going wrong that would be much appreciated. I have included the code below. Thanks! csv_file = CSV.open(CSV_PATH, "r") csv_file.each do | pattern_temp | unless pattern_temp[0].nil? pattern_record = { :code => pattern_temp[0].delete("\""), :designer => pattern_temp[1], :name => pattern_temp[2], :designs => pattern_temp[3], :price => pattern_temp[4].delete("$"), :set => pattern_temp[5].delete("\"\r\n"), :set...