Sha256: df1490d3e1f8bcdb2458e614a3591cc76476a6c917ff61ab022bbfb5e72a11d9

Contents?: true

Size: 610 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 3 rubygems

Version Path
radiant-1.0.0.rc3 app/models/file_not_found_page.rb
kajam-1.0.3.rc2 app/models/file_not_found_page.rb
radiant-1.0.0.rc2 app/models/file_not_found_page.rb
radiant-1.0.0.rc1 app/models/file_not_found_page.rb
radiantcms-couchrest_model-0.1.3 app/models/file_not_found_page.rb
radiantcms-couchrest_model-0.1.2 app/models/file_not_found_page.rb
radiantcms-couchrest_model-0.1.1 app/models/file_not_found_page.rb
radiantcms-couchrest_model-0.1 app/models/file_not_found_page.rb