Class Mack::Errors::InvalidRenderType
In: lib/mack/errors/errors.rb
Parent: StandardError

Raised when an action returns something other then a string.

Example:

  class FooController
    include Mack::Controller
    def index
      [1,2,3,4]
    end
  end

Methods

new  

Public Class methods

Takes the Class you are trying to render.

[Source]

    # File lib/mack/errors/errors.rb, line 32
32:       def initialize(klass)
33:         super("You can not render a #{klass}! It must be a String.")
34:       end

[Validate]