# A waste of rhtml

**URL:** <https://www.ruby-forum.com/t/a-waste-of-rhtml/85591>\
**Category:** Rails\
**Created:** [February 14, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/a-waste-of-rhtml/85591 "2007-02-14T20:38:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddiewould](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Post date:** [February 14, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/a-waste-of-rhtml/85591/1 "2007-02-14T20:38:42Z")

</div>

Hi.

with an RJS, if you have just a one liner, instead of making an rjs page  
for it, you’d do render :update do |page|…

but what about rhtml pages? I just have a dinky \<%= render :partial =\>  
%\> in there…

---

<div class="post-metadata">

**Author:** ![eddiewould](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Post date:** [February 14, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/a-waste-of-rhtml/85591/2 "2007-02-14T21:27:35Z")

</div>

Just use something like …  
render (:inline =\> %{

## Hello Ruby
})

Bill S.

> **[Jade Cove Partners](https://www.jadecove.com/)**

On Feb 14, 2:38 pm, Dominic S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![eddiewould](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Post date:** [February 14, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/a-waste-of-rhtml/85591/3 "2007-02-14T22:07:44Z")

</div>

Dominic S. wrote:

> Hi.
> 
> with an RJS, if you have just a one liner, instead of making an rjs page  
> for it, you’d do render :update do |page|…
> 
> but what about rhtml pages? I just have a dinky \<%= render :partial =\>  
> %\> in there…

Have you tried using

render :partial =\> “somepartial”

in your action? I think that’ll do it.

-Bryan

---

<div class="post-metadata">

**Author:** ![eddiewould](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Post date:** [February 14, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/a-waste-of-rhtml/85591/4 "2007-02-14T23:44:06Z")

</div>

Hey guys, you were both right. i just forgot the silly :layout=\> true at  
the end…

thanks

Bryan D. wrote:

> Dominic S. wrote:
> 
> > Hi.
> > 
> > with an RJS, if you have just a one liner, instead of making an rjs page  
> > for it, you’d do render :update do |page|…
> > 
> > but what about rhtml pages? I just have a dinky \<%= render :partial =\>  
> > %\> in there…
> 
> Have you tried using
> 
> render :partial =\> “somepartial”
> 
> in your action? I think that’ll do it.
> 
> -Bryan
