Sha256: 69c436af64488cde336f00aa9e9e36f497ad25991edb5dc7e3f81a5299a0fcde

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

module Plezi
  module Base
    class Err404Ctrl
      def index
        response.status = 404
        render('404') || 'Error 404, not found.'
      end

      def requested_method
        :index
      end

      include Plezi::Controller
    end
    class Err500Ctrl
      def index
        response.status = 500
        render('500') || 'Internal Error 500.'
      rescue
        'Internal Error 500.'
      end

      def requested_method
        :index
      end
      include Plezi::Controller
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plezi-0.14.4 lib/plezi/router/errors.rb
plezi-0.14.3 lib/plezi/router/errors.rb
plezi-0.14.2 lib/plezi/router/errors.rb
plezi-0.14.1 lib/plezi/router/errors.rb
plezi-0.14.0 lib/plezi/router/errors.rb