# Troubles with ActionController::DoubleRenderError

**URL:** <https://www.ruby-forum.com/t/troubles-with-actioncontroller-doublerendererror/190382>\
**Category:** Rails\
**Created:** [June 18, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/troubles-with-actioncontroller-doublerendererror/190382 "2010-06-18T21:39:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgegetafe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eada6e/32.png) [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Post date:** [June 18, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/troubles-with-actioncontroller-doublerendererror/190382/1 "2010-06-18T21:39:59Z")

</div>

Hello all!

I’m having troubles with my ruby application.

When I click on the submit button, the browser shows me this: We’re  
sorry, but something went wrong.

## The production.log file has this text:

Processing IdentificacionClienteController#parentesco\_funcionario (for  
189.169.176.192 at 2010-06-18 12:14:02) [POST]  
Parameters: {“expuesto”=\>“no”, “beneficiario”=\>{“puesto”=\>“”,  
“parentesco”=\>“”, “nombre\_expuesto”=\>“”, “app\_recursos”=\>“”},  
“guardar”=\>“Terminar”}  
Redirected to [https://www.mysite.com.mx/a/b](https://www.mysite.com.mx/a/b)

ActionController::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/identificacion\_cliente\_controller.rb:157:in  
`parentesco_funcionario' fcgi (0.8.8) lib/fcgi.rb:117:in `session’  
fcgi (0.8.8) lib/fcgi.rb:104:in `each_request' fcgi (0.8.8) lib/fcgi.rb:36:in `each’  
dispatch.fcgi:24

## Rendering /home/a/ruby/myApp/public/500.html (500 Internal Server Error)

And the line that has the error is:

redirect\_to (:action =\> :imprime\_req, :beneficiario =\> @beneficiario.id)

I tried to fix it with this:

redirect\_to (:action =\> :imprime\_req, :beneficiario =\> @beneficiario.id)  
and return

But the application continues doing the same.

If I do the same locally, using WampServer and NetBeans, the application  
works perfectly, but in the server doesn’t.

Please, I hope and someone can help me.

Thanks and regards
