[Rails-core] Passing NilClass To Create MiniTest Backtrace Cleaner

2011-03-23 Thread Ken Collins
Morning All! Some things I noticed while playing with 3.1 master last night. 1) When using the #create! method on an association and pass nil vs an empty hash, now fails silently with no warning or anything. It's almost like a no-op. I did not test to see if this behavior occurred on a basic

Re: [Rails-core] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Jason King
This is not the right place for this sort of question, use the rubyonrails-talk group instead. On Mar 23, 2011 8:45 AM, Surya raj.sury...@gmail.com wrote: Hi, First of all very sorry for this long post. I am trying to save my csv data to table items which is associated with Item model. This

[Rails-core] Re: 909588d causes breakage if foreign keys are used

2011-03-23 Thread José Valim
Yes, it is a bug. Here is a very simply fix that considers both your scenario and the one in the original patch: https://gist.github.com/883459 Once we have a test case, I can apply and get this fixed. :D Thanks for reporting! On Mar 5, 6:40 pm, Frederick Cheung frederick.che...@gmail.com

Re: [Rails-core] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Matt Jones
On Mar 23, 2011, at 9:42 AM, Surya wrote: Hi, First of all very sorry for this long post. I am trying to save my csv data to table items which is associated with Item model. This is what my csv have: 'name';'number';'sub_category_id';'category_id';'quantity';'sku';

Re: [Rails-core] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Surya
Ok, Thanks for letting me know about this. On Wed, Mar 23, 2011 at 11:15 PM, Matt Jones al2o...@gmail.com wrote: On Mar 23, 2011, at 9:42 AM, Surya wrote: Hi, First of all very sorry for this long post. I am trying to save my csv data to table items which is associated with Item model.