Forum: Ruby-Forum.com how to extract the url?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
74b12171278329601699336d0236b099?d=identicon&s=25 Wrapster Aol (wrapster)
on 2009-02-16 15:08
Hi,

I am trying to extract the url and base the processing on it..
Have written a series of webrick servlets for this purpose...
But am unable to extract the url.

Supposing i have 2 forms, say
<form action='form1' method='post'>
bla
  bla
</form>

<form action='form2' method='post'>
bla2
  bla2
</form>

How do i extract the url from these 2 forms and process accordingly?
i tried with req.uri , but webrick reports an error...
how do i call it?

Thanks
This topic is locked and can not be replied to.