class RenderXmlTest::TestController
Public Class Methods
controller_path()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 18 def self.controller_path "test" end
Public Instance Methods
formatted_xml_erb()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 35 def formatted_xml_erb end
render_with_location()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 22 def render_with_location render xml: "<hello/>", location: "http://example.com", status: 201 end
render_with_object_location()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 26 def render_with_object_location customer = Customer.new("Some guy", 1) render xml: "<customer/>", location: customer, status: :created end
render_with_to_xml()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 31 def render_with_to_xml render xml: XmlRenderable.new end
render_xml_with_custom_content_type()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 38 def render_xml_with_custom_content_type render xml: "<blah/>", content_type: "application/atomsvc+xml" end
render_xml_with_custom_options()
click to toggle source
# File actionpack/test/controller/render_xml_test.rb, line 42 def render_xml_with_custom_options render xml: XmlRenderable.new, root: "i-am-THE-xml" end