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.
Noel R. Morais (Guest)
on 2006-02-20 23: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
Jamie O. (Guest)
on 2006-02-21 17: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.