123456789_123456789_123456789_123456789_123456789_

Exception: ActionView::StrictLocalsError

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ArgumentError
Instance Chain:
self, ArgumentError
Inherits: ArgumentError
  • ::Object
Defined in: actionview/lib/action_view/template/error.rb

Class Method Summary

Constructor Details

.new(argument_error, template) ⇒ StrictLocalsError

[ GitHub ]

  
# 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