# # Project <%= @conf.appname %> # # Created using bivouac on <%= Time.now %>. # Copyright (c) <%= Time.now.year %> __My__. All rights reserved. # module <%= @conf.appname %> def r404(p=env.PATH) puts p.gsub( /^\//, "" ) if File.exist?( File.join( filePath( __FILE__ ), '..', '..', 'public', p ) ) redirect "/public" << p else @status = 404 @path = p render :not_found end end end