# Transactions

**URL:** <https://www.ruby-forum.com/t/transactions/178503>\
**Category:** Rails\
**Created:** [November 5, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/transactions/178503 "2009-11-05T15:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanstorck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Post date:** [November 5, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/transactions/178503/1 "2009-11-05T15:52:02Z")

</div>

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](http://pastie.org/684694). May be there is another better way to do  
this.
