Exception: Super::Error::NothingToRender

Inherits:
Super::Error
  • Object
show all
Defined in:
lib/super/error.rb

Overview

Error raised when rendering if @view wasn't set by the controller

Instance Method Summary collapse

Constructor Details

#initialize(basename) ⇒ NothingToRender

Returns a new instance of NothingToRender.



20
21
22
23
24
25
# File 'lib/super/error.rb', line 20

def initialize(basename)
  super(
    "Super's built-in `#{basename}.html.erb` requires `@view` to be set " \
    "by the controller, but it wasn't set"
  )
end