class RenderTemplate::WithLayoutController

Public Instance Methods

index() click to toggle source
# File actionpack/test/controller/new_base/render_template_test.rb, line 157
def index
  render template: "test/basic"
end
with_custom_layout() click to toggle source
# File actionpack/test/controller/new_base/render_template_test.rb, line 173
def with_custom_layout
  render template: "test/basic", layout: "greetings"
end
with_layout() click to toggle source
# File actionpack/test/controller/new_base/render_template_test.rb, line 161
def with_layout
  render template: "test/basic", layout: true
end
with_layout_false() click to toggle source
# File actionpack/test/controller/new_base/render_template_test.rb, line 165
def with_layout_false
  render template: "test/basic", layout: false
end
with_layout_nil() click to toggle source
# File actionpack/test/controller/new_base/render_template_test.rb, line 169
def with_layout_nil
  render template: "test/basic", layout: nil
end