Files: README CHANGELOG COPYING lib/camping.rb lib/camping/reloader.rb lib/camping/fastcgi.rb lib/camping/session.rb lib/camping/db.rb lib/camping/webrick.rb | classes: MissingLibrary Camping Camping::Views Camping::Session Camping::Controllers Camping::Controllers::ServerError Camping::Controllers::NotFound Camping::Helpers Camping::Base Camping::Models Camping::Models::Session Camping::FastCGI Camping::Mab Camping::Reloader Camping::H WEBrick WEBrick::CampingHandler

Class Camping::Controllers::NotFound < R()

(in files lib/camping.rb )

The NotFound class is a special controller class for handling 404 errors, in case you‘d like to alter the appearance of the 404. The path is passed in as p.

  module Camping::Controllers
    class NotFound
      def get(p)
        @status = 404
        div do
          h1 'Camping Problem!'
          h2 "#{p} not found"
        end
      end
    end
  end

Includes

Methods

Public Instance method: get(p)

     # File lib/camping.rb, line 544
544:       def get(p)
545:         r(404, Mab.new{h1(P);h2("#{p} not found")})
546:       end