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.. -- 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 -~----------~----~----~----~------~----~------~--~---
Just use something like ... render (:inline => %{<h2>Hello Ruby</h2>}) Bill Siggelkow http://www.jadecove.com On Feb 14, 2:38 pm, Dominic Son <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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.. > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Dominic Son 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 -- 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 -~----------~----~----~----~------~----~------~--~---
Hey guys, you were both right. i just forgot the silly :layout=> true at the end.. thanks Bryan Duxbury wrote:> Dominic Son 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-- 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 -~----------~----~----~----~------~----~------~--~---