Sha256: eebd6909512d060af405b862ba29e631333060bfa03be9151cd2024e5d0a9514

Contents?: true

Size: 595 Bytes

Versions: 60

Compression:

Stored size: 595 Bytes

Contents

class FileNotFoundPage < Page
  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

  def cache?
    false
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
trusty-cms-6.0.4 app/models/file_not_found_page.rb
trusty-cms-6.0.3 app/models/file_not_found_page.rb
trusty-cms-6.0.2 app/models/file_not_found_page.rb
trusty-cms-6.0.1 app/models/file_not_found_page.rb
trusty-cms-5.6.1 app/models/file_not_found_page.rb
trusty-cms-6.0.0 app/models/file_not_found_page.rb
trusty-cms-5.6.0 app/models/file_not_found_page.rb
trusty-cms-5.5.9 app/models/file_not_found_page.rb
trusty-cms-5.5.8 app/models/file_not_found_page.rb
trusty-cms-5.5.7 app/models/file_not_found_page.rb
trusty-cms-5.5.6 app/models/file_not_found_page.rb
trusty-cms-5.5.5.1 app/models/file_not_found_page.rb
trusty-cms-5.5.1 app/models/file_not_found_page.rb
trusty-cms-5.5 app/models/file_not_found_page.rb
trusty-cms-5.4.4 app/models/file_not_found_page.rb
trusty-cms-5.4.3 app/models/file_not_found_page.rb
trusty-cms-5.4.2 app/models/file_not_found_page.rb
trusty-cms-5.4.1 app/models/file_not_found_page.rb
trusty-cms-5.4.0 app/models/file_not_found_page.rb
trusty-cms-5.3.9 app/models/file_not_found_page.rb