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, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---