Sha256: 2cd7d0ddbe1170356f06f0e5b5e96a7cb9cf696467d0bf1492881780ace87095

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

class TestsController < ApplicationController
  def render_console_ontop_of_text
    render text: '<h1 id="greeting">Hello World</h1>'
    console
  end

  def renders_console_only_once
    render text: '<h1 id="greeting">Hello World</h1>'
    2.times { console }
  end

  def doesnt_render_console_on_non_html_requests
    render json: {}
    console
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
web-console-2.1.3 test/dummy/app/controllers/tests_controller.rb
web-console-2.1.2 test/dummy/app/controllers/tests_controller.rb
web-console-2.1.1 test/dummy/app/controllers/tests_controller.rb
web-console-2.1.0 test/dummy/app/controllers/tests_controller.rb
web-console-2.0.0 test/dummy/app/controllers/tests_controller.rb