posted 8 years ago
I have tried to use Nokogiri just to grab all the data s i could go around saving it into an .csv file. However, I kept getting 503 errors so i had to work around it.
I have an excel file with rows :name :address :phone :image and i want to import this data into my preexisting database.
My preexisting table in ruby is
I saved my .csv file in my db folder and added import.rake to lib/tasks
when i run rake import i get
it gives this error for each of the rows I tried to import.
I am also worried that I'm doing this wrong and it will mess up my db so any advice would be appreciated.