[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Web Ruby w/o Rails

Hermann Martinelli

6/24/2007 4:20:00 PM

> -----Original Message-----
> From: "Ð?мил Ð?ванов / Emil Ivanov" <emil.vladev@gmail.com>
>
> Date: Sun, 24 Jun 2007 06:44:22
> To:ruby-talk@ruby-lang.org (ruby-talk ML)
> Subject: Web Ruby w/o Rails
>
>
> Hi,
>
> I want to start developing a web application in Ruby, but can't configure it
> to work. There are so much options that I get confused :)
> eruby, mod_ruby (which I think, but unsure, is depreciated), cgi, fastcgi...
>
> I can't get the simple "hello world" :(
>
> I'm with strong C# and PHP background
[...]
Add an HTTP background and you will be fine. :-)

> I will be very grateful if you help me get started.

We do not know what environment you are working
in and what your experience/knowledge is. So,
sorry if this answer is too basic or trivial.

The most common thing that is very likely to
be available on whatever web server you are using
might be CGI. Very likely that your web server has
a directory called cgi-bin. Ask your sysadmin or
- for Apache - check the httpd.conf to see details.

Assuming your web server has such a directory and
the execution of CGIs is enabled there (most often
the default setting), create a file in this directory,
name it 'test.rb' and put the following in this file:

#!/usr/local/bin/ruby
puts "Content-Type: text/plain\n\n",
"Hello world"

Of course,this is a very basic way to work.
However, using the modules ERB and CGI it is even
possible to keep design and logic separated.

It doesn't work?
- chmod 755 test.rb
- Did you forget the two newlines after the Content-Type line?
- Ask the administrator if your web server configured to run CGIs.

HM
1 Answer

Al Nakba

1/21/2010 8:56:00 PM

0

On Jan 21, 11:00 am, jos boersema <jo...@xs4all.nl> wrote:
> ["Followup-To:" header set to soc.culture.usa.]
> On 2010-01-20, cornholio <andxor...@gmail.com> wrote:
>
> > On Jan 20, 11:07 am, "Heinrich" <Heinr...@Ruhrgasnet.de> wrote:
> >> "Al Nakba" <williamhubb...@bluebottle.com> schreef in berichtnews:dce57dc2-e77e-49b9-9871-fc29e0dd955a@r19g2000yqb.googlegroups.com...
>
> >> >http://gatesofvienna.bl...
>
> >> wilders is in great shape and is counti9ng of be9ing set free
>
> > The fact is the whole trial is a blight on the Netherlands that
> > encourages the islamonazis residing there.
>
> Obviously none of you has a clue about Holland or Dutch politics.
> Wilders is a dangerous demagogue, while there may be a criminal
> immigrant issue to a degree (?), these are Americanized arabs (MTV
> arabs). The problem seems to be USA culture if any. However all this
> is rather marginal imho. The real problem is the dictatorship of
> capitalism (tiranical businesses, private money manipulations of
> markets, corporations, resources). This system is again in crisis (as
> usual). This G.Wilders thing is one more attempt to divert attention
> from the real problem, foment some sort of idiocy to keep the people
> occupied, while the treasury is looted. American money is rumored to
> be behind fascist Wilders. You even know what party Wilders originated
> from ? VVD ! The party of the big banks, always opposed to labor and
> its interests in rights and income, and actually responible for letting
> in the cheap southern labor (who where Islam) ! They did it themselves.
> With left cover sure, but still. These days VVD is still on the same
> line: open the borders, let more cheap labor in, so domestic labor
> markets can be put down (excess labor offers, especially from people who
> don't know how to demand their rigths, and - also ideal for the
> capitalist bosses - don't speak the local language; the more national
> chaos in the culture, people not talking the same language, the better
> for capital; who is a Turkish cleaner going to ask for help, how does
> she even know she has rights ? result, extremely low wages become
> possible, this is what the bosses of capitalism are after; also to
> foment their EU empire further of course, undermining nations is part of
> that.)
>
> Wilders is a fascist, does nothing but shout cheap insults, and he
> probably knows full well. He is probably playing this. It is the 3rd
> attempt at a fascist party in Holland (P.Fortuyn and TON are the other
> two.) Coincidence this comes at another great crisis of the capitalist
> tirany ? You decide, I doubt it though.
> --
>         ,,,,,,, ,,,      http://www.socialism.... /party/nl/david-we
> ___/_/////////_//////,.    
>    \\\\ \\\\\\\\\ \\\`            The Good Feather ASCII Ribbon campaign for
>           ```````` `              decent Usenet discourse & etiquette.

embrace your dhimmitude..