rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Checkbox selection trouble in request.params
@ 2012-06-13  7:55 Randy M
  2012-06-15 15:58 ` Joshua Ballanco
  0 siblings, 1 reply; 5+ messages in thread
From: Randy M @ 2012-06-13  7:55 UTC (permalink / raw)
  To: Rack Development

Hello everyone.

I'm using rack (1.4.1), but it seems cannot receive
checkbox selection value..

 http://localhost/hello.cgi?foo=1&foo=3
 Hello, Rack
 {"foo"=>"3"}

Code below.

 #!ruby
 require "rack"
 class HelloRack
  def call(env)
    req = Rack::Request.new(env)
    return [200, {"Content-Type" => "text/plain"},
             "Hello, Rack\n" +  req.params.inspect  ]
  end
 end
 Rack::Handler::CGI.run HelloRack.new

Could anyone tell me idea?


----------
Randy Michaels
randy_michaels@aol.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-16  8:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13  7:55 Checkbox selection trouble in request.params Randy M
2012-06-15 15:58 ` Joshua Ballanco
2012-06-15 17:15   ` Randy M
2012-06-15 17:11     ` Silviu Rusu
2012-06-16  8:13       ` Randy M

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).