From e9c23b25a91126fc3246f1871a22e26b89ec2b17 Mon Sep 17 00:00:00 2001 From: makoto kuwata Date: Sun, 20 Mar 2011 14:47:33 +0900 Subject: [bugfix] 'index.cgi' to require 'erubis' before configuration --- public_html/index.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public_html/index.cgi b/public_html/index.cgi index ceb8629..7d8a8b1 100755 --- a/public_html/index.cgi +++ b/public_html/index.cgi @@ -9,11 +9,6 @@ ## add directory path where Erubis installed #$LOAD_PATH << "/home/yourname/lib/ruby" -## configuration -$ENCODING = nil -$LAYOUT = '_layout.rhtml' -$ERUBIS_CLASS = Erubis::Eruby # or Erubis::EscapeEruby - ## load Erubis begin require 'erubis' @@ -30,6 +25,11 @@ rescue LoadError => ex end end +## configuration +$ENCODING = nil +$LAYOUT = '_layout.rhtml' +$ERUBIS_CLASS = Erubis::Eruby # or Erubis::EscapeEruby + ## helper class to represent http error class HttpError < Exception -- cgit v1.2.1