Web development w/ ruby

It was very hard to install eruby, I had to install erb, and then I did
the same for eruby. I was not able to install mod_ruby on my tiger the
first time. and I can't install it this time either.
./configure.rb --with-apxs=/usr/sbin/apxs
works on tiger,
but the make gives an error.

Where is this documentation on ruby CGI modules and classes?

I am actually eager to see something emerge that will be the next twist to Rails (adopting it's developments
and findings but then with proper components, interresting sesson persistence etc.)

I am sure it's possible to get some mileage out of Rails components by themselves as well.

···

On 15-jun-2006, at 17:38, Francis Cianfrocca wrote:

I've been shipping and supporting commercial applications in
Ruby-without-Rails for three years now. There are tutorials out there for
getting eruby and mod_ruby to work with Apache. Also, if you read the
documentation for Ruby CGI modules and classes, that's a big head start.
Performance can be a problem, but it's vastly better than Rails at any rate.
And some newer approaches are starting to emerge as well.

--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl

Eric Armstrong wrote:

That sounds like a terrific project, well worth pursuing.
And I am /delighted/ to hear that there are aspects of
Rails I can use without a database (thanks, Asenchi).

Thinking I had to install a database is one of the things
that has kept me from taking a look at Rails...

Even if you do find you need a database eventually, you should take a look at sqlite (if you haven't already). Drop dead simple, especially with Rails' migrations.

···

--
Alex

Mat Schaffer wrote:

On Jun 7, 2006, at 9:51 AM, Asenchi wrote:

On 6/7/06, Mat Schaffer <schapht@gmail.com> wrote:

On Jun 7, 2006, at 12:30 AM, rahul benegal wrote:
> cameron.matheson wrote:
>> Hi guys,
>>
>> I need to make some simple web-pages at work for internal use
>> (changing svn password, modifying postfix email-aliases, etc). I'd
>> like to use ruby for this.
>
> I too am unable to find any documentation or help for building wep
> apps
> (*outside* of rails). I am confused between mod_ruby, cgi, fcgi,
> ruby-web, ruby-fcgi etc. <b>Is there a simple tutorial?</b>
>
> I did get a simple cgi program to run off apache (unmodified), but
> when
> i added "require 'cgi' it threw a 500 internal error. I have installed
> rails, but first wish to do some *non-db* stuff outside of it. Just
> apache or lighttpd.

I've come up against the lack of tutorials for such a thing as well.
But recently I've made good progress getting mod_ruby and eRuby
working together to produce a lightweight web environment much like
PHP (where I came to Ruby from). Althought I understand mod_ruby
has some speed issues.
However, get, post, and cookies are still a bit of a headache. I'm
hoping to make some progress on that shortly.
-Mat

I've used Rails so much, that now I just install Rails, and use it
without a database. I really like the whole environment and since I
am used to it (testing, webrick while designing, etc.) it works really
well. Just a suggestion. Good luck.

I've considered this option as well and I kinda like it. My main drive for creating a PHP-like Ruby web environment is evangelism, I think. Lowering the barrier to entry so that (so long as it's installed on the server) all a user has to do to start coding is open a .rhtml file. That and possibly pairing it with a PHP->Ruby translation package to get my old apps working in Ruby (albeit, ugly Ruby).

Hopefully I'm not grossing out anyone too much here, but _I_ think it's worthwhile.
-Mat

ruby CGI docs are in the rdocs.
Might be easiest for you to build apache from source. I'd do it in a
non-privileged user directory (./configure --prefix=/Users/you/some_dir)
while you're figuring it out, and make sure you throw the switches to give
you an so-enabled build with apxs.

···

On 6/15/06, anne001 <anne@wjh.harvard.edu> wrote:

It was very hard to install eruby, I had to install erb, and then I did
the same for eruby. I was not able to install mod_ruby on my tiger the
first time. and I can't install it this time either.
./configure.rb --with-apxs=/usr/sbin/apxs
works on tiger,
but the make gives an error.

Where is this documentation on ruby CGI modules and classes?