search for: index_xml

Displaying 2 results from an estimated 2 matches for "index_xml".

Did you mean: index_html
2007 Sep 29
1
templates with same name before extension are cached
...rs/dusty/nms/app/views/layout/application.{html.erb,jerb,herb,haml,mab,js.erb,xerb,rhtml,builder,rxml,erb} - searched Dir[glob].first and found found is : /Users/dusty/nms/app/views/layout/application.html.erb So, I suppose that the EASY workaround is to rename my xml template to something like index_xml.xerb and then call it like: render :xml => :index_xml I was just wondering if that was the intended behavior, that''s all. The documentation threw me off for a second there because of this line. # render :xml => true # render :xml => true, :action => "buffalo...
2006 May 31
3
Camping and Builder and XML
...n accepts search strings and renders the resulting hit list in HTML, and it works quite nicely. The next step was to alternately render the list in XML for consumption by another application. In Rails, I would simply use Builder in the view to get the job done, and so I did the same in Camping ... Index_xml is my view: def index_xml @headers[''Content-Type''] = ''text/xml'' xml = Builder::XmlMarkup.new(:target => self) xml.instruct! xml.results do # # more xml builder stuff here # end end This works great! After hacking this togeth...