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

Ich erhalte diesen Fehlerflash [: error] = '<u> Fehler bei Wells:</u><br />' + flash [: error]

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

Bearbeiten Sie Ihre Frage Einfügen der Controller-Methode, von der der Fehler stammt – MarsAtomic

+0

es sei denn, well_xml_parse (upload_job_path) # Wir an anderer Stelle sind Parsen (für Wiederverwertbarkeit) \t binding.pry flash [: error] = ' Fehler bei Wells:
' + flash [: error] \t \t \t return (error ("", upload_job_path)) –

+0

hier kommt der fehler in controler –

Antwort

0

Versuchen Sie, diese

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

sorry ich habe versucht es funktioniert nicht –

Verwandte Themen