Exception: ActionView::StrictLocalsError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ActionView::StrictLocalsError
- Defined in:
- lib/action_view/template/error.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(argument_error, template) ⇒ StrictLocalsError
constructor
A new instance of StrictLocalsError.
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) = argument_error.. gsub("unknown keyword:", "unknown local:"). gsub("missing keyword:", "missing local:"). gsub("no keywords accepted", "no locals accepted"). concat(" for #{template.short_identifier}") super() end |