Exception: Mack::Errors::InvalidRenderType

Inherits:
StandardError
  • Object
show all
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

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