Sha256: 5400a3b00a309919e227878b4548bd5983b4692099097f631f5ba7e34460902c
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
class Main helpers do def load_path(path) @item = Aura.find(path) or pass pass unless @item.try(:renderable?) show @item.page_templates, {}, :item => @item end end get '/*' do |path| load_path path end get '/' do path = '/home' # Do we have a homepage? if Aura.find(path).nil? return show(:'default_home_page', :layout => false) end load_path(path) end not_found do [ 404, show('errors/not_found') ] end #error 500 do # error 500, show('errors/error') #end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aura-0.0.1.pre10 | app/routes/site.rb |