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. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jun 23, 2010, at 8:56 AM, Pale Horse 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 Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://gaslightsoftware.com rab-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > http://gaslightsoftware.com > rab-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.orgThank you. I am using 1.8. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.