render :text in Rails 2.1

I'm trying to get my "in place editor" controls working again after
moving up to Rails 2.1. I got the authenticity token working and
everything is fine except the render. Maybe I never did it right in the
first place.

I do:

resond_to do |format|
  format.html { render :text => new_text }
end

This is what the "Rails Book" (Dave Thomas and DHH) says to reply with
but it might be out of date by now.

I am now getting the whole layout sent back.

I don't really want to do "render :update" because this piece of code
works with lots of controls and I'd have to figure out which control to
update or replace.

Any ideas?

Thanks,

Perry Smith wrote:

I do:

resond_to do |format|
  format.html { render :text => new_text }
end

Have you tried

{render :text => new_text, :layout => false}

?

I do that with partials periodically, but can't say that I've tried it
with render: text, which I don't really use much.

Peace,
Phillip

Phillip Koebbe wrote:

Perry Smith wrote:

I do:

resond_to do |format|
  format.html { render :text => new_text }
end

Have you tried

{render :text => new_text, :layout => false}

My new_text was (and it wasn't suppose to be). There is a bug already
reported about this.

Thanks!