Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 73919
BY: Demetrius Olsen (demetriuso)
DATE: 2009-05-13 00:47
SUBJECT: Help setting up FasterCSV to import a file

 

I am doing my best to configure/use FasterCSV to import a CSV file but keep getting an error message:

"Error adding logs. (You have a nil object when you didn't expect it! The error occurred while evaluating nil.students). Please try again."

When I look at the console window, I notice that within the parameters it says {"file"=>#<File:C:/Users/DEMETR~1/AppData/Local/Temp/RackMultipart20090512-4252-1mr70he-0>}. This is not the correct directory of the file I wanted to upload.

I downloaded an app that uses FasterCSV (and am using the code from its controller and views in my app). With this app, I am able to successfully import a CSV file. From the console window, I noticed the file parameters read {"file"=>#<ActionController::UploadStringIO:0x72f8314>}

I'm wondering if there is a "specification file" that I need to configure because at one point I was prompted (from the console window) to run "rake gems:refresh_specs."

Thank you in advance.



Thread View

Thread Author Date
Help setting up FasterCSV to import a fileDemetrius Olsen2009-05-13 00:47
      RE: Help setting up FasterCSV to import a fileJames Gray2009-05-13 03:22
            RE: Help setting up FasterCSV to import a fileDemetrius Olsen2009-05-13 04:46
                  RE: Help setting up FasterCSV to import a fileJames Gray2009-05-13 14:53
                        RE: Help setting up FasterCSV to import a fileDemetrius Olsen2009-05-13 16:32
                              RE: Help setting up FasterCSV to import a fileJames Gray2009-05-13 19:57
                                    RE: Help setting up FasterCSV to import a fileDemetrius Olsen2009-05-13 23:24

Post a followup to this message