ClaimAuditEntriesController Post 'create' redirect to root path
Failure/Error: get 'create',{"claim_audit_entry"=>{"estimator"=>"1", "claim"=>"123456790", "claim_awaiting_audit_id"=>"25", "carrier_branch_id"=>"4", "estimate_date"=>"10-19-2013", "review"=>"", "severity"=>"1022.52", "admin_score"=>"8", "compliance_score"=>"44", "estimating_score"=>"12.13", "leakage_amount"=>"124", "overall_score"=>"64.13"}, "adm_que"=>"{"1":{"question":"Professionally Written","answer":"No","exception":"3","notes":"test note"},"2":{"question":"Vehicle Admin Complete","answer":"No","exception":"3","notes":"test note"},"3":{"question":"Estimate Admin Complete","answer":"No","exception":"2","notes":"test note"}}", "com_que"=>"{"4":{"question":"Parts Guidelines","answer":"No","exception":"16","notes":"test note"},"5":{"question":"State Guidelines","answer":"No","exception":"13","notes":"test note"},"6":{"question":"Carrer Guidelines","answer":"No","exception":"15","notes":"test note"}}", "est_que"=>"{"7":{"ext_question":"Tax Rate Correct","ext_answer":"No","impact":"Over","amount":"23","ext_notes":"test note"},"8":{"ext_question":"Correct Tax Structure","ext_answer":"No","impact":"Over","amount":"1","ext_notes":"test note"},"9":{"ext_question":"Labour Rate Supported","ext_answer":"No","impact":"Over","amount":"12","ext_notes":"test note"},"10":{"ext_question":"Repair Decision Accurate","ext_answer":"No","impact":"Over","amount":"32","ext_notes":"test note"},"11":{"ext_question":"Labour Hours Accurate","ext_answer":"No","impact":"Over","amount":"23","ext_notes":"test note"},"12":{"ext_question":"APU Accurate","ext_answer":"No","impact":"Over","amount":"33","ext_notes":"test note"}}", "comment_added"=>"", "commit"=>"Confirm"}
NoMethodError:
undefined method `update_attribute' for nil:NilClass
./app/controllers/claim_audit_entries_controller.rb:49:in`block in create'
./app/controllers/claim_audit_entries_controller.rb:47:in `create'
./spec/controllers/claim_audit_entries_controller_spec.rb:75:in`block (3 levels) in <top (required)>'