I'm having a problem when I try to import a csv file with more than one column. I get a mass assignment security error in spite of the fact that I have all the attributes listed in my attar_accessible statement. The error seems to list all the attributes except the very first column of my csv file. Any ideas? My code is the same as Ryan's with the exception that I am using a model named "Customer.rb" instead of "Product.rb"
I figured out my problem. I had spaces after the commas in my csv file. Once removed, I no longer had the problem.
I'm having a problem when I try to import a csv file with more than one column. I get a mass assignment security error in spite of the fact that I have all the attributes listed in my attar_accessible statement. The error seems to list all the attributes except the very first column of my csv file. Any ideas? My code is the same as Ryan's with the exception that I am using a model named "Customer.rb" instead of "Product.rb"