Exception: ViewComponent::NoMatchingTemplatesForPreviewError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/view_component/errors.rb

Constant Summary collapse

MESSAGE =
"Found 0 matches for templates for TEMPLATE_IDENTIFIER."

Instance Method Summary collapse

Constructor Details

#initialize(template_identifier) ⇒ NoMatchingTemplatesForPreviewError

Returns a new instance of NoMatchingTemplatesForPreviewError.



193
194
195
# File 'lib/view_component/errors.rb', line 193

def initialize(template_identifier)
  super(MESSAGE.gsub("TEMPLATE_IDENTIFIER", template_identifier))
end