Sha256: 3479352b76a29c42a762fe84cf7ada771fbd00033a247f826ad5cb29cc840223
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 Bytes
Contents
class PageMissingBehavior < Behavior::Base register 'Page Missing' description %{ The Page Missing behavior is used to create a "File Not Found" 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 the Missing Page behavior. } define_tags do url = request.request_uri if request tag("attempted_url") { url } end def page_virtual? true end def page_headers { 'Status' => '404 Not Found' } end def cache_page? false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.0 | app/behaviors/page_missing_behavior.rb |
radiant-0.5.1 | app/behaviors/page_missing_behavior.rb |
radiant-0.5.2 | app/behaviors/page_missing_behavior.rb |