I am using a partial for an xml page, but the xml.instruct is not showing up: Main xml file: xml.instruct! :xml, :version=>"1.0" xml << render(:partial => ''success_error'', :locals => {:x => @x, :p_xml => xml}) Partial: p_xml.response do p_xml.tag!(x[:type]) do p_xml.message x[:msg] end end When I view the page the xml shows up but not the header. When I right click and view source then I can see the header info. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 19, 11:31 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using a partial for an xml page, but the xml.instruct is not > showing up: > > Main xml file: > > xml.instruct! :xml, :version=>"1.0" > > xml << render(:partial => ''success_error'', :locals => {:x => > @x, :p_xml => xml}) > > Partial: > > p_xml.response do > p_xml.tag!(x[:type]) do > p_xml.message x[:msg] > end > end > > When I view the page the xml shows up but not the header. When I > right click and view source then I can see the header info.Sounds like it''s just the way your browser is choosing to display the xml. Fred -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Well it is odd, if I put the code in the main view it shows up. On Apr 19, 5:34 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 19, 11:31 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I am using a partial for an xml page, but the xml.instruct is not > > showing up: > > > Main xml file: > > > xml.instruct! :xml, :version=>"1.0" > > > xml << render(:partial => ''success_error'', :locals => {:x => > > @x, :p_xml => xml}) > > > Partial: > > > p_xml.response do > > p_xml.tag!(x[:type]) do > > p_xml.message x[:msg] > > end > > end > > > When I view the page the xml shows up but not the header. When I > > right click and view source then I can see the header info. > > Sounds like it''s just the way your browser is choosing to display the > xml. > > Fred > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.