class ActionView::Template

def translate_location(backtrace_location, spot)

source location inside the template.
Translate an error location returned by ErrorHighlight to the correct
def translate_location(backtrace_location, spot)
  if handler.respond_to?(:translate_location)
    handler.translate_location(spot, backtrace_location, encode!) || spot
  else
    spot
  end
end