Exception: Mack::Errors::UnknownLayout

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

Overview

Raised when a layout is specified that doesn’t exist.

Instance Method Summary collapse

Constructor Details

#initialize(layout) ⇒ UnknownLayout

Takes a layout name.



57
58
59
# File 'lib/errors/errors.rb', line 57

def initialize(layout)
  super("Could not find layout in: #{File.join(MACK_ROOT, "app", "views", layout.to_s + ".html.erb")}")
end