Displaying 1 result from an estimated 1 matches for "uses_transact".
2006 Jan 07
1
How to test a failing transaction
Hi,
I was wondering if somebody knows how I can make a transaction fail, so
I can test my rescue code. So a very basic transaction:
begin
Listing.transaction(@ad) do
if @ad.save
flash[:notice] = ''Ad was successfully created.''
redirect_to :action => ''list''
else
render :action =>