# Render :update with different controller does nothing

**URL:** <https://www.ruby-forum.com/t/render-update-with-different-controller-does-nothing/192165>\
**Category:** Rails\
**Created:** [July 25, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/render-update-with-different-controller-does-nothing/192165 "2010-07-25T12:41:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chromag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@chromag](https://www.ruby-forum.com/u/chromag)\
**Post date:** [July 25, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/render-update-with-different-controller-does-nothing/192165/1 "2010-07-25T12:41:47Z")

</div>

Hi!

I want to render 2 different actions - in different controller - when  
the user clicks on a button.  
I solved this with JS calls (Ajax.Updater) within the view,  
but wanted to take the app logic out of the view and into the  
controller.  
So I created a new controller action, calling the 2 updates from there  
like this:

render :update do |page|  
page.replace\_html ‘Browser’, :partial =\> ‘browser’  
page.replace\_html ‘DetailView’, :url =\> {:controller =\> ‘place’,  
:action =\> ‘edit’, :id =\> @selection}  
end

Unfortunately, the update of the DetailView does nothing.  
The generated JS (for DetailView only) looks like this:

try {  
Element.update(“DetailView”, null);  
} catch (e) { alert(‘RJS error:\n\n’ + e.toString());  
alert(‘Element.update(“DetailView”, null);’); throw e }

So nothing gets rendered.  
What can I do?

Thanks!  
Chris
