RailsCasts Pro episodes are now free!

Learn more or hide this

maheshbablu17's Profile

GitHub User: maheshbablu17

Comments by

Avatar

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

def self.import(file)
CSV.foreach(file.path, headers: true) do |row|
puts "upload"
end

end