Sha256: 025a5818c43e2a964d11453777d2cf6fca507141b52ca6d7d6462a5947ed9215
Contents?: true
Size: 287 Bytes
Versions: 4
Compression:
Stored size: 287 Bytes
Contents
module Owl module CMS module Base extend Sinatra::Extension not_found do # => If 404, let's look for the page somewhere else. end get '*' do |path| path = "/home" if path == '/' render_page(path) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
owl-cms-0.1.3 | core/routes/base.rb |
owl-cms-0.1.2 | core/routes/base.rb |
owl-cms-0.1.1 | core/routes/base.rb |
owl-cms-0.1.0 | core/routes/base.rb |