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.



25
26
27
28
29
30
# File 'lib/super/error.rb', line 25

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