A waste of rhtml

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…

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

Hello Ruby

})

Bill S.

On Feb 14, 2:38 pm, Dominic S. [email protected]

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

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