Help with routing error


#1

Ok … if you are sensitive … stop reading.

I am totally new to setting up CGI. I am getting a routing error.
Would someone be kind enough to help me? Please?

Here is my form …

Form | Contact A #I have tried text/plain

I put this in the public folder of a rails WEBrick app.

Here is my Ruby CGI …

###################################################
#!/opt/local/bin/ruby -w

text = “dog”
print “Content-type: text/html\r\n\r\n”
print “”
print “Hello, #{ text} !
print “”
##################################################
I put this in cgi-bin directory in the same dir as the forms.html
file. Permissions on the Ruby script where set to 775. My intention
is not to handle any input from the forms.html file but just to get
back a simple "“Hello dog” after the submit.

here is what i get when i run WEBrick and hit the Submit button …

Routing Error

Recognition failed for “cgi-bin/parse.rb”

Can anyone help me. I am not sure if this is a problem with my code,
WEBrick of the form.

Thanks and don’t be shy … i have a thick skin.

john


#2

Anybody … please …


#3

Um, all this stuff has nothing to do with Ruby on Rails really.

If I understand correctly you’re trying to submit a http post to a Ruby
CGI script. But,
that’s not how rails works, or at least I haven’t seen or read about
anyone doing that.
Are you just trying to test CGI? But even if that’s the intent, I don’t
think what you’re
doing is even close to how rails uses CGI.

Maybe say what it is you’re trying to accomplish and we can try to help.

b