Exception: Mack::Errors::InvalidRenderType
- Defined in:
- lib/mack/errors/errors.rb
Overview
Raised when an action returns something other then a string.
Example:
class FooController
include Mack::Controller
def index
[1,2,3,4]
end
end
Instance Method Summary collapse
-
#initialize(klass) ⇒ InvalidRenderType
constructor
Takes the Class you are trying to render.
Constructor Details
#initialize(klass) ⇒ InvalidRenderType
Takes the Class you are trying to render.
32 33 34 |
# File 'lib/mack/errors/errors.rb', line 32 def initialize(klass) super("You can not render a #{klass}! It must be a String.") end |