Noel R. Morais
2006-Feb-20 21:08 UTC
[Rails] I can''t insert records using sql server database!
Hi everybody, When I code something like this: user = User.new(:user => "test", :password => "test") user.save user.nil? # its return true its only happen when I use sql server database, in mysql or postgres its work fine! Noel R. Morais RFC - Ready for Calls +55 (11) 3471-4005 www.rfcnet.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060220/ac7a887e/attachment.html
Jamie Orchard-Hays
2006-Feb-21 15:11 UTC
[Rails] I can''t insert records using sql server database!
try using user.save! and see if you''re getting any errors thrown. Jamie On Feb 20, 2006, at 4:08 PM, Noel R. Morais wrote:> Hi everybody, > > > > When I code something like this: > > > > user = User.new(:user => ?test?, :password => ?test?) > > user.save > > user.nil? # its return true > > > > its only happen when I use sql server database, in mysql or > postgres its work fine! > > > > > > Noel R. Morais > > RFC - Ready for Calls > > +55 (11) 3471-4005 > > www.rfcnet.com.br > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060221/c7157ad2/attachment.html