D
Devlin Zaussome
I'm quite new to Ruby and am wondering if there is a way to access what
I called "URL variables" (not sure if that's the proper name.) They were
essentially GET variables, and PHP made it very easy to access with a
global called $_GET.
Is there an equivalent for Ruby? I'm trying to avoid using Rails, I
don't like it much.
For more clarification, if somebody visits a file called "test.rb" in
their web browser with the full URL "test.rb?foo=bar," how could I have
the app print "bar," or more specifically, the value of foo.
I called "URL variables" (not sure if that's the proper name.) They were
essentially GET variables, and PHP made it very easy to access with a
global called $_GET.
Is there an equivalent for Ruby? I'm trying to avoid using Rails, I
don't like it much.
For more clarification, if somebody visits a file called "test.rb" in
their web browser with the full URL "test.rb?foo=bar," how could I have
the app print "bar," or more specifically, the value of foo.