public
Description: Radiant is a no-fluff, open source content management system designed for small teams.
Homepage: http://radiantcms.org/
Clone URL: git://github.com/radiant/radiant.git
radiant / app / models / file_not_found_page.rb
100644 29 lines (21 sloc) 0.571 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class FileNotFoundPage < Page
  
  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