Help with Ruby and web

Hi All,
I am a Ruby newbie, and so far I am loving it. I am exploring my options
for web-development with ruby. It would be great if someone would point me
in the right direction (Yes, I did search the web/newsgroups but many
documents are in Japanese and I can’t read Japanse).

I want to develop on windows as I have only one machine at home and using
Linux is not an option.

What should I use (mod_ruby | eruby | erb)?

Thanks
Venu

VT wrote:

Hi All,
I am a Ruby newbie, and so far I am loving it.

I’m quite new myself (also loving it) and haven’t used any of this
professionally. But playing around I found

What should I use (mod_ruby | eruby | erb)?

mod_ruby + eruby took me a long time to set up. But if speed is a great
concern then that’s maybe what you’ll have to do. I’ve heard stability
rumours, but haven’t experienced. But then I was just playing (no load)

erb is sweet, small and sweet. You’ll have it running in 10 minutes. Use
with (fast)cgi or even ruby server if you can afford.

I also tried fast_cgi (http://fenris.codedogs.ca/~eli/fastcgi.html).
Fast-CGI is a protocol that sends request information to a (or several)
running processes. (Thus avoiding the overhead of restarting ruby every
time, and mybe more importantly removing you from the possibility of
database connection reuse)
The fastcgi module is old and stable and the ruby implementation worked
fine for me. Together with erb a good alternative (IMHO) to the pure
ruby way.

Cheers
Torsten

Thanks for the info, I will check into these.

Venu

“Torsten Rüger” torsten.rueger@firsthop.com wrote in message
news:3D2A93C8.7000504@firsthop.com

···

VT wrote:

Hi All,
I am a Ruby newbie, and so far I am loving it.

I’m quite new myself (also loving it) and haven’t used any of this
professionally. But playing around I found

What should I use (mod_ruby | eruby | erb)?

mod_ruby + eruby took me a long time to set up. But if speed is a great
concern then that’s maybe what you’ll have to do. I’ve heard stability
rumours, but haven’t experienced. But then I was just playing (no load)

erb is sweet, small and sweet. You’ll have it running in 10 minutes. Use
with (fast)cgi or even ruby server if you can afford.

I also tried fast_cgi (http://fenris.codedogs.ca/~eli/fastcgi.html).
Fast-CGI is a protocol that sends request information to a (or several)
running processes. (Thus avoiding the overhead of restarting ruby every
time, and mybe more importantly removing you from the possibility of
database connection reuse)
The fastcgi module is old and stable and the ruby implementation worked
fine for me. Together with erb a good alternative (IMHO) to the pure
ruby way.

Cheers
Torsten

i’m no expert on the merits of each, but i’m using mod_ruby with cgi (no
eruby) eruby didn’t seem very fast --pure ruby is faster. when using
mod_ruby, if i am not mistaken, fast_cgi is a mute point.

i am having much success with my mod_ruby/cgi project. great fun. (well,
most of the time)

i imagine for smaller projects though mod_ruby + eruby would do very
well. eruby certainly make it easy to through together web pages.

~transami

···

On Tue, 2002-07-09 at 16:07, VT wrote:

Thanks for the info, I will check into these.

Venu

“Torsten Rüger” torsten.rueger@firsthop.com wrote in message
news:3D2A93C8.7000504@firsthop.com

VT wrote:

Hi All,
I am a Ruby newbie, and so far I am loving it.

I’m quite new myself (also loving it) and haven’t used any of this
professionally. But playing around I found

What should I use (mod_ruby | eruby | erb)?

mod_ruby + eruby took me a long time to set up. But if speed is a great
concern then that’s maybe what you’ll have to do. I’ve heard stability
rumours, but haven’t experienced. But then I was just playing (no load)

erb is sweet, small and sweet. You’ll have it running in 10 minutes. Use
with (fast)cgi or even ruby server if you can afford.

I also tried fast_cgi (http://fenris.codedogs.ca/~eli/fastcgi.html).
Fast-CGI is a protocol that sends request information to a (or several)
running processes. (Thus avoiding the overhead of restarting ruby every
time, and mybe more importantly removing you from the possibility of
database connection reuse)
The fastcgi module is old and stable and the ruby implementation worked
fine for me. Together with erb a good alternative (IMHO) to the pure
ruby way.

Cheers
Torsten


~transami

“They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.”
– Benjamin Franklin

Again, I am trying to do this on Windows as I have no access to a Unix/Linux
box. So here are my questions

  1. Is there a precompiled version of mod_ruby for Windows platforms.
  2. Does mod_ruby + ruby allow you to mix html and code (like JSPs). My
    understanding is eruby does.

Any documentation / howto in English will be a huge help to ruby beginners
like me.

Thanks
Venu

“Tom Sawyer” transami@transami.net wrote in message
news:1026259534.24019.303.camel@silver…

i’m no expert on the merits of each, but i’m using mod_ruby with cgi (no
eruby) eruby didn’t seem very fast --pure ruby is faster. when using
mod_ruby, if i am not mistaken, fast_cgi is a mute point.

i am having much success with my mod_ruby/cgi project. great fun. (well,
most of the time)

i imagine for smaller projects though mod_ruby + eruby would do very
well. eruby certainly make it easy to through together web pages.

~transami

Thanks for the info, I will check into these.

Venu

“Torsten Rüger” torsten.rueger@firsthop.com wrote in message
news:3D2A93C8.7000504@firsthop.com

VT wrote:

Hi All,
I am a Ruby newbie, and so far I am loving it.

I’m quite new myself (also loving it) and haven’t used any of this
professionally. But playing around I found

What should I use (mod_ruby | eruby | erb)?

mod_ruby + eruby took me a long time to set up. But if speed is a
great
concern then that’s maybe what you’ll have to do. I’ve heard stability
rumours, but haven’t experienced. But then I was just playing (no
load)

erb is sweet, small and sweet. You’ll have it running in 10 minutes.
Use
with (fast)cgi or even ruby server if you can afford.

I also tried fast_cgi (http://fenris.codedogs.ca/~eli/fastcgi.html).
Fast-CGI is a protocol that sends request information to a (or
several)
running processes. (Thus avoiding the overhead of restarting ruby
every
time, and mybe more importantly removing you from the possibility of
database connection reuse)
The fastcgi module is old and stable and the ruby implementation
worked

···

On Tue, 2002-07-09 at 16:07, VT wrote:

fine for me. Together with erb a good alternative (IMHO) to the pure
ruby way.

Cheers
Torsten


~transami

“They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.”
– Benjamin Franklin

http://www.modruby.net/ has most of the English documentation. They
also have a mailing list specifically for mod_ruby that you may want
to join.

···

On Thu, Jul 11, 2002 at 06:29:47AM +0900, VT wrote:

  1. Is there a precompiled version of mod_ruby for Windows platforms.
  2. Does mod_ruby + ruby allow you to mix html and code (like JSPs). My
    understanding is eruby does.

Any documentation / howto in English will be a huge help to ruby beginners
like me.

VT wrote:

Again, I am trying to do this on Windows as I have no access to a Unix/Linux
box. So here are my questions

  1. Is there a precompiled version of mod_ruby for Windows platforms.
  2. Does mod_ruby + ruby allow you to mix html and code (like JSPs).

No

My understanding is eruby does.

Yes. And erb is the same. you can write things like this in a template

<% somearray.each do |item| %> ## <% erb start <%# comment <%= dump resulting expression into html <% end>
<%=item %>

I only remember for erb that you can set it up like
res = ERbLight.new( erbfile.read ).result binding
in your code. And then all variables that are accessible at that line,
will be accessible in the html. (The “binding” is passed)
ERuby I don’t know.

Any documentation / howto in English will be a huge help to ruby beginners
like me.

http://www.rubydoc.org/books/modruby/book1.htm

looked ok.

Cheers
Torsten