On 24 Dec 2008, at 14:37, sa 125 wrote: > > vHowever, all these fail: > >>> p = Product.new(:name => "VCR", :vendor_id => 1, :in_stock => false) >>> p.save > => false >>> p = Product.new(:name => "VCR", :vendor_id => 1, :in_stock => 0) >>> p.save > => false >>> p = Product.new(:name => "VCR", :vendor_id => 1, :in_stock => >>> nil)>> p.save > => false > > The migration lists the type as t.boolean :in_use, and the database > shows the column type as tinyint(1). > That's normal. Dou have a validation that this is causing the save to fail ?
Fred > What am I doing wrong? > > Thanks! > -- > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

