Here is peace of code: User.transaction do User.destroy_all "id = #{params[:id]}" @user.update_attributes!(params[:user]) raise end User class objects are removed from DB, and @user object attributes are updating, despite of Exception in the transaction block :(( How can I rollback transaction if Exception throw in transaction block ? Thanks, bioform --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---