JC: added wf_event to model and fixed wf validate. Added @erb_code to controller for create/update. Added spec for failed wf action. spec passes.