file.temp is an object. I have a form where a csv can be uploaded, but it is never stored. That's why I use tempfile. That means that I probably have no path to use in that method.
BUT, the open and foreach method for the CSV class is working with an object whenever I don't have a german special character in my csv file or when my csv file is already in utf-8 encoding format. On 22 Jun., 12:05, Chirag Singhal <chirag.sing...@gmail.com> wrote: > What does file.tempfile return? > If it is a file object, then we have a problem, we need to pass in file path > here. > So call path on the file object and pass that as the first argument. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.