search for: input1_id

Displaying 1 result from an estimated 1 matches for "input1_id".

Did you mean: _input_id
2006 Oct 06
1
transactions not work for array?
Hi, I have a transaction block as follow: begin Hello.transaction(input1,input2) input1.save for i in 0 to count input2[i].input1_id = input1.id input2[i].save end end rescue end I have used validates_uniqueness_of for input2 in the model The problem is, when there is duplicate record in input2, input1 and the first record in input2 are inserted into db and commited. ? Thanks. -- Posted via http:...