diff options
author | makoto kuwata <kwa@kuwata-lab.com> | 2011-03-20 14:47:33 +0900 |
---|---|---|
committer | makoto kuwata <kwa@kuwata-lab.com> | 2011-03-20 14:47:33 +0900 |
commit | e9c23b25a91126fc3246f1871a22e26b89ec2b17 (patch) | |
tree | 0e40b2e6d9c90340943f4c404e95d9e38592eb64 | |
parent | cfcceea865db92a9590992a7a72a5655276e21fd (diff) | |
download | erubis-e9c23b25a91126fc3246f1871a22e26b89ec2b17.tar.gz |
[bugfix] 'index.cgi' to require 'erubis' before configuration
-rwxr-xr-x | public_html/index.cgi | 10 |
1 files 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 |