Sha256: 07860a23a3b8d90dd162ec41ddc410fb5cfb5e9ffa6518b3e459bacc3919adf1

Contents?: true

Size: 596 Bytes

Versions: 125

Compression:

Stored size: 596 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

125 entries across 125 versions & 1 rubygems

Version Path
trusty-cms-4.1.2 app/models/file_not_found_page.rb
trusty-cms-4.1.1 app/models/file_not_found_page.rb
trusty-cms-4.1.0 app/models/file_not_found_page.rb
trusty-cms-4.0.2 app/models/file_not_found_page.rb
trusty-cms-3.9.7 app/models/file_not_found_page.rb
trusty-cms-3.9.6 app/models/file_not_found_page.rb
trusty-cms-3.9.5 app/models/file_not_found_page.rb
trusty-cms-4.0.1 app/models/file_not_found_page.rb
trusty-cms-3.9.4 app/models/file_not_found_page.rb
trusty-cms-3.9.3 app/models/file_not_found_page.rb
trusty-cms-3.9.2 app/models/file_not_found_page.rb
trusty-cms-4.0.0 app/models/file_not_found_page.rb
trusty-cms-3.9.1 app/models/file_not_found_page.rb
trusty-cms-3.9.0 app/models/file_not_found_page.rb
trusty-cms-3.8.4 app/models/file_not_found_page.rb
trusty-cms-3.8.3 app/models/file_not_found_page.rb
trusty-cms-3.8.2 app/models/file_not_found_page.rb
trusty-cms-3.8.1 app/models/file_not_found_page.rb
trusty-cms-3.8.0 app/models/file_not_found_page.rb
trusty-cms-3.7.1 app/models/file_not_found_page.rb