Ok so i have a database table called requests with this structure mysql> desc requests; +------------+--------------+------+-----+---------+----------------+
I am using the csv-mapper gem to import a csv file. When I use the example code on in the README (http://github.com/pillowfactory/csv-mapper) in script/console it works great. However, when I create a
Ok so I am trying to import a csv which I need to insert into a db through rails or anyway that would be quickest so i decided to create a dummy rails application to do the importing. Here is some of
G\'day guys, currently have almost finished writing a rails application that allows a CSV download of the database. This is generated when the index is first viewed.
I have a CSV file formatted just like this: name,color,tasty,qty apple,red,true,3 orange,orange,false,4 pear,greenish-yellowish,true,1
Exporting some data from mysql to a csv file using FasterCSV.I\'d like the columns in the outputted CSV to be in the same order as the select statement in my query.
I have a rails app with some nested data that I\'d like to export as a CSV file The models look like: class ContainerRecord < ActiveRecord::Base
I have a controller in Rails that generates CSV reports using FasterCSV. These reports will contain approximately 20,000 rows, maybe more.
I currently have the following code to parse a csv file using the standard csv library @parsed_file=CSV::Reader.parse(params[:dump][:file])
I\'m trying to get fastercsv setup so that rather than parsing each row, it will place each column into an multi array.