# \[rails 2.3.2\] ActionController::DoubleRenderError

**URL:** <https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170>\
**Category:** Rails\
**Created:** [March 29, 2009, 10:24am UTC](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170 "2009-03-29T10:24:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [March 29, 2009, 10:24am UTC](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170/1 "2009-03-29T10:24:46Z")

</div>

Hi  
I don’t know how to get rid of this error… I need some help to  
understand how to rewrite it  
this action is executed from a remote\_form (facebox style), and I  
want to keep also the html degraded call

is this issue coming from the close\_facebox + redirect\_to ?

def update  
@auth\_source = AuthSource.find(params[:id])  
respond\_to do |format|  
if if @auth\_source.update\_attributes(params[:auth\_source])  
flash[:notice] = I18n.t(:notice\_successful\_update)  
format.html { redirect\_to :action =\> ‘list’ }  
format.js { close\_facebox; redirect\_to :controller =\>  
‘settings’, :action =\> ‘index’, :tab =\> ‘authentification’ }  
else  
format.html { render :action =\> ‘edit’ }  
format.js { render\_to\_facebox :partial =\> “/auth\_sources/  
edit”}  
end  
end  
end

thanks for your suggestions

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [March 29, 2009, 11:26am UTC](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170/2 "2009-03-29T11:26:49Z")

</div>

On Mar 29, 9:24 am, Erwin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi  
> I don’t know how to get rid of this error… I need some help to  
> understand how to rewrite it  
> this action is executed from a remote\_form (facebox style), and I  
> want to keep also the html degraded call
> 
> is this issue coming from the close\_facebox + redirect\_to ?

It depends - what’s in the close\_facebox method? If it is doing a  
render or a redirect then yes,

Fred

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [March 29, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170/3 "2009-03-29T12:55:44Z")

</div>

Yes , That’s the point… I need to investigate a little bit more…  
but I commented the redirect , keeping only the close\_facebox and  
that’s fine !!  
thanks for your tip

erwin
