Transactions

There are many transactions in our project. In some methods I need to
know was transaction success or not . Also I want to catch exceptions
like ActiveRecord::RecordInvalid in one place and not propagate them on
to higher levels of application. How can I done this? I write this
code: http://pastie.org/684694. May be there is another better way to do
this.