search for: sub_array

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

Did you mean: skb_array
2011 Mar 18
6
how to rescue this exception
hi,i don''t know how to capture the following exception if the file directory or name is not correct. ########## def index @csv_array=[] begin CSV.foreach(''files/sample.csv'') do|row| sub_array=row @csv_array<<sub_array end rescue Exception=>e flash.now[:error]="error:#{e}" raise end end ######### after execute the above method,i get the exception like the following,but i don''t like it.i don''t know how to capture the except...