# \[rjs\] How can I render a action template instead of partial

**URL:** <https://www.ruby-forum.com/t/rjs-how-can-i-render-a-action-template-instead-of-partial/51106>\
**Category:** Rails\
**Created:** [December 26, 2005, 2:06pm UTC](https://www.ruby-forum.com/t/rjs-how-can-i-render-a-action-template-instead-of-partial/51106 "2005-12-26T14:06:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdurrahman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@abdurrahman](https://www.ruby-forum.com/u/abdurrahman)\
**Post date:** [December 26, 2005, 2:06pm UTC](https://www.ruby-forum.com/t/rjs-how-can-i-render-a-action-template-instead-of-partial/51106/1 "2005-12-26T14:06:32Z")

</div>

Hi,

I want to render a action template with rjs, so instead of doing this:  
page.replace\_html ‘maincontent’, :partial =\> ‘list’ I want to do this:  
page.replace\_html ‘maincontent’, :action =\> ‘list’ but the render (that  
is called by replace\_html, outputs to the reponds\_body), so it doesn’t  
work.

Is there a way of doing this, I could find one browsing the source? or  
should I file a bug/create a patch

thnx,

Abdur-Rahman
