I am making an application in which it import a csv file names user.csv.But the problem i am facing is that it gives an error
ArgumentError in CsvimportController#import
wrong number of arguments (1 for 0)
And the code of the CsvimportController is
require 'csv'
class CsvimportController < ApplicationController
def import
results = import('anas.csv') do
read_attributes_from_file
end
end
end
And i have also give the specification of csv-mapper and fastercsv in gem file.
Can anyone help me???
Any help would be appreciated..
Thanks