Exception: ActionView::StrictLocalsError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/action_view/template/error.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(argument_error, template) ⇒ StrictLocalsError

Returns a new instance of StrictLocalsError.



31
32
33
34
35
36
37
38
# File '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