I have a problem that when I try to save an object in the DB, in the development environment it works OK but in the production environment it doesn’t save anything.
This problem appears only with Ruby 1.9.3; with 1.8.7, it works ok in both environments. I’m using Rails 3.0.10 and this code; it’s part of rake script.
if @preproduct.save
puts "Preproduct added successfully"
else
puts "Preproduct error, was not added"
end
Any suggestions?
I fix this using this code on rake script and then fix the attributes when create the object.