instance method open_file

Ruby on Rails 8.1.2

Since v7.2.3 Private

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

open_file(path)

No documentation comment.

Parameters

path req
Source
# File actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb, line 23
        def open_file(path)
          require "launchy"
          Launchy.open(path)
        rescue LoadError
          warn "File saved to #{path}.\nPlease install the launchy gem to open the file automatically."
        end

Defined in actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb line 23 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::TestHelpers::PageDumpHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close