JC: Fixed bug in  wf validation by adding wf_event to attr_accessor. Added @erb_code in controller for create/update when data error. Spec passes.