Cgi.params sometimes empty following post to a form handler with mod_ruby

I have a simple form handler in the form of an rhtml file being served
by Apache 2 and mod_ruby. On occasion, the CGI object created with
CGI.new will have an empty parameter list even though values were
posted from the form. I checked with a packet sniffer to make sure the
values were actually being transmitted, and they were. It works 90% of
the time, but that's not acceptable for something seen by real users.

It's very hard to troubleshoot this, as the problem only occurs
occasionally. Has anyone seen something like this before?

Isn't mod_ruby legacy now for serving ruby applications over the web?
Are you using a custom framework or something like camping et al?

Cheers

Tim

···

--
Posted via http://www.ruby-forum.com/.

Probably, but legacy shouldn't mean totally broken. I'm not using a
framework at all - just a couple rhtml files. This really isn't
complicated enough to justify using a framework, but if I keep having
problems, I might move to Merb.

···

On Feb 6, 6:03 am, Tim Perrett <he...@timperrett.com> wrote:

Isn't mod_ruby legacy now for serving ruby applications over the web?
Are you using a custom framework or something like camping et al?

What do you mean by "legacy"? There's some new "web" that's been invented since the last release for which it's unsuitable?

···

On Feb 6, 2008, at 3:03 AM, Tim Perrett wrote:

Isn't mod_ruby legacy now for serving ruby applications over the web?

--
Michael Granger <ged@FaerieMUD.org>
Rubymage, Architect, Believer
The FaerieMUD Consortium <http://www.FaerieMUD.org/&gt;

To be honest, if its just a web RHTML files dont bother moving to merb -
you dont need the overhead. Take a look at 'webby' or 'webgen' - they'll
give you the RHTML functionality you need.

Cheers

Tim

···

--
Posted via http://www.ruby-forum.com/.

Tim Perrett wrote:

To be honest, if its just a web RHTML files dont bother moving to merb -
you dont need the overhead. Take a look at 'webby' or 'webgen' - they'll
give you the RHTML functionality you need.

Neither of those need mod_ruby by the way. They'll just work with Apache
as straight HTML

···

--
Posted via http://www.ruby-forum.com/\.

It looks like these are useful templating systems for a static site,
but what I need here is a form handler that saves the values posted to
the form on the server for use by other scripts.

Oh ok - perhaps you should take a look camping? That would give you
basic form handling in probably the smallest framework footprint.
Otherwise if you *do* need something more complex in the way of post
processing then look at merb/rails et al

···

zak.wilson@gmail.com wrote:

It looks like these are useful templating systems for a static site,
but what I need here is a form handler that saves the values posted to
the form on the server for use by other scripts.

--
Posted via http://www.ruby-forum.com/\.