Displaying 1 result from an estimated 1 matches for "chaitanyv".
Did you mean:
chaitanya
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