Exception: Super::Error::NothingToRender
- Inherits:
-
Super::Error
- Object
- StandardError
- Super::Error
- Super::Error::NothingToRender
- Defined in:
- lib/super/error.rb
Overview
Error raised when rendering if @view
wasn't set by the controller
Instance Method Summary collapse
-
#initialize(basename) ⇒ NothingToRender
constructor
A new instance of NothingToRender.
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 |