Rendering an RJS template within another RJS template

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 H.
HighGroove Studios -
Atlanta, GA | San Mateo, CA
Keeping it Simple.

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs