A waste of rhtml


#1

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…


#2

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

Hello Ruby

})

Bill S.
http://www.jadecove.com

On Feb 14, 2:38 pm, Dominic S. removed_email_address@domain.invalid


#3

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


#4

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