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.

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 Biedenharn
http://agileconsultingllc.com
  Rob@AgileConsultingLLC.com
http://gaslightsoftware.com
  rab@GaslightSoftware.com

Rob Biedenharn 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 Biedenharn
http://agileconsultingllc.com
  Rob@AgileConsultingLLC.com
http://gaslightsoftware.com
  rab@GaslightSoftware.com

Thank you. I am using 1.8.