Sha256: b3eb4da5d7d2c9d0ad6ddea31e3efe579d16813f1b963b912be1ff349ec2ff2d
Contents?: true
Size: 606 Bytes
Versions: 11
Compression:
Stored size: 606 Bytes
Contents
class FileNotFoundPage < Page def cache_timeout 5.minutes end def allowed_children [] end description %{ A "File Not Found" page can be used to override the default error page in the event that a page is not found among a page's children. To create a "File Not Found" error page for an entire Web site, create a page that is a child of the root page and assign it "File Not Found" page type. } tag 'attempted_url' do |_tag| CGI.escapeHTML(request.request_uri) unless request.nil? end def virtual? true end def response_code 404 end end
Version data entries
11 entries across 11 versions & 1 rubygems