Forum: Ruby Headers and page redirecting

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ebe185b9e682aea8c503bdf4e28638a9?d=identicon&s=25 Devo 9er (devo9er)
on 2009-04-15 00:57
 I am creating a simple contact form with field validation to make sure
users are entering valid data. I am posting the form data via CGI to the
same page so it can run the validation, if there are errors the page is
the same and the fields are highlighted where there are errors. All that
works fine. Now I am trying to redirect the user to a new page depending
on certain conditions determined by their post data. HOW? I have found
stuff like:

cgi ="html4")
cgi.header("Location" => "/some/other/page")

But it doesn't work? Is it because headers are already sent or
something? I feel like what I am trying to do should be relatively easy.
Thanks in advance!
This topic is locked and can not be replied to.