Skip to content

Commit

Permalink
[bugfix] 'index.cgi' to require 'erubis' before configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed Mar 20, 2011
1 parent cfcceea commit e9c23b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public_html/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit e9c23b2

Please sign in to comment.