2016-10-20 4 views
0
flash[:error] = '<u>Error in Wells:</u><br />' + flash[:error] 

내가플래시 [: 오류] = '웰스 <u> 오류 :</u><br />'+ 플래시 [: 오류]

AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".): app/controllers/application_controller.rb:70:in `error' 
    app/controllers/application_controller.rb:441:in `block (2 levels) in parse_job_xml_modern' 
    app/controllers/application_controller.rb:115:in `each' 
    app/controllers/application_controller.rb:115:in `block in parse_job_xml_modern' 
    app/controllers/application_controller.rb:92:in `parse_job_xml_modern' 
    app/controllers/jobs_controller.rb:1017:in `block in parse_job_xml' 
    app/controllers/jobs_controller.rb:1012:in `each' 
    app/controllers/jobs_controller.rb:1012:in `parse_job_xml' 
    app/controllers/jobs_controller.rb:760:in `parse' 


    Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.0. 
0/lib/action_dispatch/templates/rescues/_source.erb (3.0ms) 
    Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.0. 
0/lib/action_dispatch/templates/rescues/_trace.html.erb (5.0ms) 
    Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.0. 
0/lib/action_dispatch/templates/rescues/_request_and_response.html.erb (2.0ms) 
    Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.0. 
0/lib/action_dispatch/templates/rescues/_web_console.html.erb (1.0ms) 
    Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/web-console-2.0. 
0/lib/action_dispatch/templates/rescues/diagnostics.html.erb within rescues/layo 
ut (77.0ms) 
+0

편집 질문을하려고이 오류를 얻고있다 오류가 _ 생한 제어기 메소드를 포함하십시오. – MarsAtomic

+0

well_xml_parse (upload_job_path)하지 않는 한 우리는 \t binding.pry 플래시 (재사용을 위해) 다른 곳에서이 구문 분석하고 # [: 오류] = '웰스 오류 :
'+ 플래시 [: 오류] \t \t \t return (error ("", upload_job_path)) –

+0

여기 오류가 컨트롤러에 입력됩니다. –

답변

0

flash[:error] = 'Error in Wells:' + flash[:error] 
+0

죄송합니다. 작동하지 않으려 고 죄송합니다. –