Can I record after a successful save?
Allows you to specify a user model with an attribute name, email, etc.
For instance,
u=User.new
u.name="test_name"
u.email="test@email.com"
u.save
Now the record will be successfully saved in the database after that, I want to cancel my transaction (not destroy or delete). Any ideas?
source
share