Displaying 1 result from an estimated 1 matches for "transaction_routine".
2006 Aug 08
3
Database transactions
...ansaction I loose the validation state, so I have no easy what of
knowing what went wrong.
I am just wonder what the best practise is..??
Is this something people would recommend?
user.validate
if user.errors.count == 0
user_details.validate
if user_details.errors.count == 0
perform transaction_routine(user, user_details)
end
end
rgds,
- matt.
--
Posted via http://www.ruby-forum.com/.