Forum: Ruby on Rails Rendering an RJS template within another RJS template

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Da2dbf48d2f400ccff8f0df127798451?d=identicon&s=25 Derek Haynes (Guest)
on 2006-01-13 05:19
(Received via mailing list)
Is there a way to render an RJS template within another?

I've put my simplified code below. No errors are generated, but the
partial isn't rendered. I also tried using render :action =>

page.visual_effect :fade, comment_container(

# update the number of comments(below is another rjs template)
render :partial => 'update_counts'
Derek Haynes
HighGroove Studios -
Atlanta, GA | San Mateo, CA
Keeping it Simple.
3f900b38ec3b2c45427c354722fa4ce3?d=identicon&s=25 Tom Fakes (tomfakes)
on 2006-01-13 09:41
(Received via mailing list)
I think you'll need to do it this way:

  page << render :partial => 'update_counts'

This will render the partial, take the output from that and add it to
current template output.
This topic is locked and can not be replied to.