instance method translate_location

Ruby on Rails 7.1.6

Since v7.1.6

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

Signature

translate_location(backtrace_location, spot)

Translate an error location returned by ErrorHighlight to the correct source location inside the template.

Parameters

backtrace_location req
spot req
Source
# File actionview/lib/action_view/template.rb, line 228
    def translate_location(backtrace_location, spot)
      if handler.respond_to?(:translate_location)
        handler.translate_location(spot, backtrace_location, encode!) || spot
      else
        spot
      end
    end

Defined in actionview/lib/action_view/template.rb line 228 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Template

Type at least 2 characters to search.

↑↓ navigate · open · esc close