search for: problem_status_id

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

2008 Aug 25
2
to catch exception from update_attribute
Hi begin ActiveRecord::Base.transaction do pb_status_history = ProblemStatusHistory.new pb_status_history.problem_id = @problem.id pb_status_history.problem_status_id = @problem.problem_status_id pb_status_history.save! ret_val=@problem.update_attribute("problem_status_id",''ab'') if ret_val==false raise ActiveRecord::ActiveRecordError end end # end of transaction rescue...