class OldContentTypeController
Public Instance Methods
render_change_for_builder()
click to toggle source
# File actionpack/test/controller/content_type_test.rb, line 40 def render_change_for_builder response.content_type = Mime[:html] render action: "render_default_for_builder" end
render_charset_from_body()
click to toggle source
:ported:
# File actionpack/test/controller/content_type_test.rb, line 23 def render_charset_from_body response.charset = "utf-16" render body: "hello world!" end
render_content_type_from_body()
click to toggle source
:ported:
# File actionpack/test/controller/content_type_test.rb, line 7 def render_content_type_from_body response.content_type = Mime[:rss] render body: "hello world!" end
render_content_type_from_render()
click to toggle source
:ported:
# File actionpack/test/controller/content_type_test.rb, line 18 def render_content_type_from_render render body: "hello world!", content_type: Mime[:rss] end
render_default_content_types_for_respond_to()
click to toggle source
# File actionpack/test/controller/content_type_test.rb, line 45 def render_default_content_types_for_respond_to respond_to do |format| format.html { render body: "hello world!" } format.xml { render action: "render_default_content_types_for_respond_to" } format.js { render body: "hello world!" } format.rss { render body: "hello world!", content_type: Mime[:xml] } end end
render_default_for_builder()
click to toggle source
# File actionpack/test/controller/content_type_test.rb, line 37 def render_default_for_builder end
render_default_for_erb()
click to toggle source
# File actionpack/test/controller/content_type_test.rb, line 34 def render_default_for_erb end
render_defaults()
click to toggle source
:ported:
# File actionpack/test/controller/content_type_test.rb, line 13 def render_defaults render body: "hello world!" end
render_nil_charset_from_body()
click to toggle source
:ported:
# File actionpack/test/controller/content_type_test.rb, line 29 def render_nil_charset_from_body response.charset = nil render body: "hello world!" end