From: Park Hee Sob Date: 2000-06-14T15:39:48+09:00 Subject: [ruby-talk:03387] Exit in eRuby 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 %> test

Hello,<%=user%>

------------------------------------------------------------ [root@ns1 eruby]# lynx -source http://localhost/test.rhtml ... ... /tmp/test.rhtml.PNQ3Oo:7:in `exit': SystemExit
from /tmp/test.rhtml.PNQ3Oo:7
... -------------------------------------------------------------