it seems like this question has appeared a few times with no answer:
how do you get rails to issue ‘write’ statements (ie ‘CREATE/UPDATE’) to
the database without committing each time?
I tried setting
before calling any action on my object, but as soon as
is called, rails will issue a ‘commit’ after the ‘CREATE’ or ‘UPDATE’.
The example given in the rails doc does not work for my application
because I cannot enclose my actions in a block (the user is allowed to
call several methods in the controller before committing).
So far I had to use update_all with a where condition. Are there other
methods that will issue an UPDATE statement without immediately sending
thanks for any hints