I can't insert records using sql server database!


#1

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


#2

try using user.save! and see if you’re getting any errors thrown.

Jamie