Wednesday, March 19, 2008

RecordInvalid




ActiveRecord::RecordInvalid


begin
complex_operation_that_calls_save!_internally
rescue ActiveRecord::RecordInvalid => invalid
puts invalid.record.errors
end