Forum: Ruby on Rails I can't insert records using sql server database!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
042759d98c09d0e18eee30d0f4ee3093?d=identicon&s=25 Noel R. Morais (Guest)
on 2006-02-20 22:11
(Received via mailing list)
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
7a966bb1534f0ea863bc9ffe65ae449f?d=identicon&s=25 Jamie Orchard-hays (jamieorc)
on 2006-02-21 16:11
(Received via mailing list)
try using user.save! and see if you're getting any errors thrown.

Jamie
This topic is locked and can not be replied to.