require 'rubygems'
    require 'spreadsheet'
    Spreadsheet.client_encoding = 'UTF-8'
     workbook = Spreadsheet.open params[:dump][:excel_file]
     sheet = workbook.worksheet 'database'


I am getting an error if i click on upload button with no file in the
field.

-- 
Posted via http://www.ruby-forum.com/.