[#2617] irb for 1.5.x — Andrew Hunt <Andy@...>
5 messages
2000/05/03
[#2639] OT: Japanese names — Dave Thomas <Dave@...>
4 messages
2000/05/09
[#2643] Ruby Toplevel — Dave Thomas <Dave@...>
7 messages
2000/05/09
[#2656] Re: Append alias for Array.append? — Aleksi Niemel<aleksi.niemela@...>
Hideto ISHIBASHI:
5 messages
2000/05/09
[#2660] win OLE / eRuby — Andrew Hunt <Andy@...>
8 messages
2000/05/09
[#2663] Re: win OLE / eRuby — Aleksi Niemel<aleksi.niemela@...>
>At Tue, 9 May 2000 09:14:51 -0400,
4 messages
2000/05/09
[#2667] The reference manual is now online — Dave Thomas <Dave@...>
6 messages
2000/05/09
[#2668] Re: The reference manual is now online — schneik@...
4 messages
2000/05/09
[#2685] Re: Tainting — ts <decoux@...>
>>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
6 messages
2000/05/10
[#2702] Re: Append alias for Array.append? — Andrew Hunt <andy@...>
>From: Aleksi Niemel<aleksi.niemela@cinnober.com>
7 messages
2000/05/10
[#2752] RE: Array.pop and documentation [was: Append al ias for Array.append?] — Aleksi Niemel<aleksi.niemela@...>
6 messages
2000/05/11
[#2758] Re: irb install — Andrew Hunt <andy@...>
>|Excellent! Will you consider adding mod_ruby to install_app as
7 messages
2000/05/11
[#2777] Re: irb install
— "NAKAMURA, Hiroshi" <nakahiro@...>
2000/05/12
Hi,
[#2764] More code browsing questions — Albert Wagner <alwagner@...>
I see some class definitions contain "include" and "extend" statements.
6 messages
2000/05/12
[#2793] After-the-fact installation questions — Albert Wagner <alwagner@...>
I probably should have asked this before I installed. I unpacked
4 messages
2000/05/12
[#2843] Re: editors for ruby — "Conrad Schneiker" <schneiker@...>
(Posted on comp.lang.ruby and ruby-talk ML.)
6 messages
2000/05/17
[#2874] RE: simple httpd for local use — Aleksi Niemel<aleksi.niemela@...>
> I personally use it for access to full-text indexed linux
6 messages
2000/05/18
[#2875] Re: simple httpd for local use
— hipster <hipster@...4all.nl>
2000/05/18
On Thu, 18 May 2000 09:10:28 +0200, Aleksi Niemelwrote:
[#2920] SWIG: virtual variable? — Yasushi Shoji <yashi@...>
hello,
4 messages
2000/05/22
[#2928] FYI: What our Python friends are up to. — "Conrad Schneiker" <schneiker@...>
Hi,
8 messages
2000/05/22
[#2964] Thank you — h.fulton@...
Thanks, Matz (and others) for your replies to
4 messages
2000/05/24
[#2973] Re: Socket.getnameinfo — ts <decoux@...>
>>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
10 messages
2000/05/25
[#3016] rbconfig.rb — Dave Thomas <Dave@...>
5 messages
2000/05/28
[#3039] Re: Final for World Series: Python vs Ruby — "Dat Nguyen" <thucdat@...>
1 message
2000/05/30
[#3058] FailureClass? — Aleksi Niemel<aleksi.niemela@...>
Question arising from the FAQ:
7 messages
2000/05/31
[ruby-talk:02734] Re: win OLE / eRuby
From:
"NAKAMURA, Hiroshi" <nakahiro@...>
Date:
2000-05-11 10:30:35 UTC
List:
ruby-talk #2734
Hi, $ndy?
> From: Andrew Hunt [mailto:andy@Toolshed.Com]
> Sent: Wednesday, May 10, 2000 1:05 PM
> >> I'm looking for a few more short examples of win32ole. Is anyone
> >> using it for a serious (or semi-serious) application? Does anyone
> >> have some short (20-30 line) examples?
I forwarded the article to ruby-list to get a serious application
which did work with Excel.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/22435
I would like to thank to Mr. Koyama Hideo who did it as soon as I requested.
But I think it may be a little long to use as a example.
Also it contains Japanese multibyte chars and Japanese style variable name.
I will wait other example for a few days.
> >> Also, the same question for eRuby - it seems pretty straightforward, but
> >> I can't find any English documentation, so more examples would be
> >> great.
> >
> >Not an 'eruby', but another eRuby environment (terminology?)
> >'erb' in http://www2a.biglobe.ne.jp/~seki/ruby/erb.html#download
> >has an example in its package.
>
> Hmm. Is either more "official" than the other? (more widely used,
> more mature, better supported, etc.)?
I think both 'eruby' and 'erb' are enough mature and well supported by the authors.
Unfortunaely I do not use eruby now, 'eruby' seems to be more widly used than 'erb'.
Different from its early versions, 'eruby' now are packed with 'mod_ruby'.
From this point of view, IMHO,
'eruby' might be more mature than 'erb' using with 'mod_ruby'.
Why I do not use 'eruby' but 'erb'?
'erb' is a Ruby library thus is easy to embed in Ruby application.
'erb' offers lightweight library named ERbLight which compiles only '<%= %>'.
Using eRuby in serious application, it is very hard and troublesome
to handle errors and exceptions in embedded code, I think. For example...
<html>
<body>
<h1>You can purchase on-line our products below</h1>
<%
begin
File.readlines( "productfile" ).each do |line|
...
end
rescue
# !!! I want to show customers Error page which does not have "You can purchase..." !!!
end
%>
</body>
I dislike too complex code in eRuby file.
Embedded code should be extremely simple such as one or two sentence(s) I think,
so I use only '<%= %>' style. ERbLight does perfect job for it.
--
NaHi, nakahiro, a.k.a. NAKAMURA, Hiroshi
http://www.sarion.com Sarion Systems Research
I am sorry for my poor English.
// Actually, with 'eruby', you can do redirect controlling HTTP header manually.
<%
$NOHEADER = true
begin
raise
rescue
# clear output
$>.cancel
# noheader mode
$NOHEADER = true
# redirection
print "Location: #{uri_for_error}\n\n"
end
%>
This example is from http://kahori.com/ruby/earrings/earrings4.html.
Thanks to Ms. TAKEUCHi Kahori.