On Jan 1, 2008, at 2:56 PM, Javier Q. wrote:
I’m trying to update some elements of the webpage with AJAX, RJS, etc
by making threads in an action of a controller and trying to partial
render the results inside each thread.
The problem is that rails wont let me have more than 1 render or
redirect per action.
Is there any possible way to do this?
This may be enough to get you started.
You can use render :update (though some people will shun you for
doing so) and call replace_html multiple times. Something like
render :update do |page|
page.replace_html ‘some_div’, :partial => ‘some_partial’
page.replace_html ‘some_other_div’, :partial => ‘some_other_partial’
There are many things you can do with render :update.