Hi,

When I tested following code with eRuby 0.0.8, eRuby error occurred.
Can't I exit in middle of eRuby script?
Or another method without using too many if blocks?

Park, Hee-Sob
---------------------------------------------------------
test.rhtml:

<%
require 'cgi'

cgi = CGI.new
user, = cgi['USER']

exit if user==nil
%>
<html><head><title>test</title>
</head>
<body>
<H1>Hello,<%=user%></H1>
</body>
</html>
------------------------------------------------------------
[root@ns1 eruby]# lynx -source http://localhost/test.rhtml
...
...
/tmp/test.rhtml.PNQ3Oo:7:in `exit': SystemExit<br>
<div class="backtrace">from /tmp/test.rhtml.PNQ3Oo:7<br></div>
...
-------------------------------------------------------------