# Replace\_html with action template

**URL:** <https://www.ruby-forum.com/t/replace-html-with-action-template/161043>\
**Category:** Rails\
**Created:** [February 22, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/replace-html-with-action-template/161043 "2009-02-22T20:28:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimi3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/46a35a/32.png) [@dimi3](https://www.ruby-forum.com/u/dimi3)\
**Post date:** [February 22, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/replace-html-with-action-template/161043/1 "2009-02-22T20:28:35Z")

</div>

Hello All,

I am trying to replace\_html with an action template, not a partial.  
Currently I don’t know how do it, I’ve renamed all my action to have \_  
in their names and I don’t like this approach.

I’ve tried render :update do |page|; page.replace\_html  
‘content’, :action =\> ‘edit’; end and it won’t work.

Regards,  
dimi3

---

<div class="post-metadata">

**Author:** ![dimi3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/46a35a/32.png) [@dimi3](https://www.ruby-forum.com/u/dimi3)\
**Post date:** [February 23, 2009, 9:31am UTC](https://www.ruby-forum.com/t/replace-html-with-action-template/161043/2 "2009-02-23T09:31:14Z")

</div>

Didn’t test if it works, but did you try

render :template =\> “your\_template” ?
