class RenderHtml::WithLayoutController
Public Instance Methods
custom_code()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 34 def custom_code render html: "hello world", status: 404 end
index()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 30 def index render html: "hello david" end
with_custom_code_as_string()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 38 def with_custom_code_as_string render html: "hello world", status: "404 Not Found" end
with_custom_layout()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 66 def with_custom_layout render html: "hello world", layout: "greetings" end
with_false()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 50 def with_false render html: false end
with_ivar_in_layout()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 70 def with_ivar_in_layout @ivar = "hello world" render html: "hello world", layout: "ivar" end
with_layout_false()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 58 def with_layout_false render html: "hello world", layout: false end
with_layout_nil()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 62 def with_layout_nil render html: "hello world", layout: nil end
with_layout_true()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 54 def with_layout_true render html: "hello world", layout: true end
with_nil()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 42 def with_nil render html: nil end
with_nil_and_status()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 46 def with_nil_and_status render html: nil, status: 403 end
with_safe_html_tag()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 79 def with_safe_html_tag render html: "<p>hello world</p>".html_safe, layout: nil end
with_unsafe_html_tag()
click to toggle source
# File actionpack/test/controller/new_base/render_html_test.rb, line 75 def with_unsafe_html_tag render html: "<p>hello world</p>", layout: nil end