CSV Upload Issue

CSV:

http://pastie.org/1015772

Controller:

http://pastie.org/1015773

Why is it that it’s only saving the record for “EFG5”? I’m obviously
missing something.

On Jun 23, 2010, at 8:56 AM, Pale H. wrote:

CSV:

http://pastie.org/1015772

Controller:

http://pastie.org/1015773

Why is it that it’s only saving the record for “EFG5”? I’m obviously
missing something.

The call to .save the model is outside of the loop.

You should indicate which version of ruby you’re using as the
implementation of CSV changed between 1.8 and 1.9 (the former
FasterCSV replaced the old CSV in the standard library for 1.9 and
assumed the shorter name).

-Rob

Rob B.
http://agileconsultingllc.com
[email protected]

[email protected]

Rob B. wrote:

The call to .save the model is outside of the loop.

You should indicate which version of ruby you’re using as the
implementation of CSV changed between 1.8 and 1.9 (the former
FasterCSV replaced the old CSV in the standard library for 1.9 and
assumed the shorter name).

-Rob

Rob B.
http://agileconsultingllc.com
[email protected]
http://gaslightsoftware.com
[email protected]

Thank you. I am using 1.8.