Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Can't get basic CGI and Form submission working
Toby Rodwell
5/13/2007 6:13:00 PM
I'm not a programmer, but like to use Ruby for writing simple programs,
mainly for helping with my day job (as a network engineer). My normal
method of coding is to take an example out a book ("The Pragmatic
Programmers Guide", what else? :)) and tailor/expand it to to my needs.
I've just written a program which produces its results in HTML, for
convenient viewing. I'm feeling a little more ambitious now and would
like now to get a *small* amount of interaction using simple forms.
However, I'm not really getting past the first hurdle. I *thought* that
putting
<form method="post" action="<path_to_ruby_script>">
"STUFF"
<input type ="submit" />
</form>
... would run the script indicated. Instead I get a '404' "The
requested URL <path...> was not found on this server."
I also tried
<form target="<path_to_ruby_script>"> ...
<input type ="submit" />
</form>
In fact, I tried this version first but it neither worked nor gave me
any errors. I know the script in question itself works because I can
run it from the command line (plus it is just creating a 'Hello World!'
file) - which is to say I chmod 755 the file and started it with the
path to the Ruby bin.
I'm probably missing something really basic, and any advice would be
gratefully received.
thanks in advance
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Can't get basic CGI and Form submission working
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password