ruby - Troubleshooting: Rails can't save to database in production? -
I can do a bit of help in ending this problem.
While using the app to create a new record, some databases are not being saved. There are no visible errors.
By leaving the command line, and using the console with the same production environment, I can create a new object and save it (I have to bypass verification). If I look in the mysql database, I can see the record created from the console.
The app works fine at the local level.
Any thoughts on what the problem might be?
Rail 2.0.2
seems like a verification error.
Try to save your controller! (With the bang) to see if a meaningful error is inserted.
I'm not sure that you have any code in the controller, but this can help to show the problem
if my_object.save log.debug 'object is correct Saved from 'and log in. Debugug my_object.errors.full_messages end
Good luck, if it does not help try posting relevant controller and model code.
Comments
Post a Comment