[Nitro] Request parameters
Jon A. Lambert
jlsysinc at alltel.net
Tue Jun 6 10:00:27 EDT 2006
Since I didn't know how to pass arbitrary number of params as array, I tried
request parameters.
I was getting an error in my actions concerning the number of parameter, so
I added a 2nd parameter. This is what it looks lke
Mapping...
Nitro::Server.map = {
'/' => ArchiveController
}
Controller has...
def index(path="",foo="")
pp path
pp foo
end
For:
http://localhost:7777/
Prints:
""
""
For:
http://localhost:7777/?path=
Prints:
"path"
nil
For:
http://localhost:7777/?path=papers
Prints:
"papers"
"papers"
What gives?
Thanks
J. Lambert
More information about the Nitro-general
mailing list