Receivein a Post Attribute

Hi!

This should be quite easy but I can’t for the life of me find a
solution.

I have the following form:

Url to examine:

As you see the action taken when the button is pressed involves a ruby
file “Main.rb”.

The Apache-server has no problem interpreting the file. The problem is
how do I pass along the text written in the textfield.

I’m guessing I need to retrieve the text in Main.rb I’ve failed
miserably at that.

Main.rb contains only:

ARGV.each do|a|
puts “#{a}”;
end

But the only time it writes out anything is when I manually send
Main.rb?some_parameter. Then the printout will be “some_parameter”.

Summary:
How do I retrieve the text from the text field in Ruby?

Thanks in advance
…And sorry if this already has been answered. I did searched.

Am 16.02.2011 16:41, schrieb Ivan Rodriguez:

Main.rb contains only: How do I retrieve the text from the text field in Ruby?

Thanks in advance
…And sorry if this already has been answered. I did searched.

This is the Ruby mailing list, not the Rails one. Rails may be written
in Ruby, but they have their own forum:
http://www.ruby-forum.com/forum/rails

You’re likely to get more answers there.

Vale,
Marvin

On Feb 16, 2011, at 8:56 AM, Quintus [email protected] wrote:

Summary:

You’re likely to get more answers there.

Except this isn’t a rails question at all.

Ivan: you may want to look into the CGI module, which should abstract
most of this stuff away and make it easier to do what you’re trying to
do.

Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs