method

new

rails latest stable - Class: ActionView::StrictLocalsError

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

new(argument_error, template)
public

No documentation available.

# File actionview/lib/action_view/template/error.rb, line 31
    def initialize(argument_error, template)
      message = argument_error.message.
                  gsub("unknown keyword:", "unknown local:").
                  gsub("missing keyword:", "missing local:").
                  gsub("no keywords accepted", "no locals accepted").
                  concat(" for #{template.short_identifier}")
      super(message)
    end