undefined method `path' for "test.csv":String Did you mean? pathmap

436 Views Asked by At

While importing csv I'm facing this issue

`def self.import(file)
    binding.pry
    CSV.new(file.path, headers: true) do |row|
    puts "upload"
    end     
end`
0

There are 0 best solutions below