From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.49.16 with SMTP id t16cs8702qcf; Wed, 1 Sep 2010 17:24:48 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCPHuoJ3hBxDO3fvjBBoE3JbudA@googlegroups.com designates 10.90.58.40 as permitted sender) client-ip=10.90.58.40; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCPHuoJ3hBxDO3fvjBBoE3JbudA@googlegroups.com designates 10.90.58.40 as permitted sender) smtp.mail=rack-devel+bncCPHuoJ3hBxDO3fvjBBoE3JbudA@googlegroups.com; dkim=pass header.i=rack-devel+bncCPHuoJ3hBxDO3fvjBBoE3JbudA@googlegroups.com Received: from mr.google.com ([10.90.58.40]) by 10.90.58.40 with SMTP id g40mr10278083aga.23.1283387088135 (num_hops = 1); Wed, 01 Sep 2010 17:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:received:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=JV1h5ja9snmSNm0tkxtEr0aM7/gCHc5DS/CcgulqUJ4=; b=EMSSqzR8JvmrP0eKTwV9+uWgwuEJPY1fLpkzvBPxXQhWXIXzou19rudTUi0xxp9gBI sQYpRJBBf/laTa0O22VsvuyGnrz/YqUwudwpkkfaMhXglUTC2tYL/sTiidrMMWNt+Z3R 8xn1xYm53f4C99YGpIudoppLedKGD/qYB17p4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:message-id:subject:from :to:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; b=TScJUaWOSF+NaKnsF4X4uEsrRZRvdN9K8jK34GG6gm4jg15eoQCV6gJ5498xblJv8K NG1rodiyJtVQaTzx0wBJ2Wj5fulOT3n4J3dRvx/1FwGiW83PFKbHJA0imWvsRIQaWJ31 CFOcNPeUHxh36FBgd/Ya8xNms71sflejSxgAk= Received: by 10.90.58.40 with SMTP id g40mr1758492aga.23.1283387086536; Wed, 01 Sep 2010 17:24:46 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.231.55.74 with SMTP id t10ls10440ibg.3.p; Wed, 01 Sep 2010 17:24:45 -0700 (PDT) Received: by 10.231.191.68 with SMTP id dl4mr840377ibb.18.1283387085924; Wed, 01 Sep 2010 17:24:45 -0700 (PDT) Received: by 10.231.191.68 with SMTP id dl4mr840375ibb.18.1283387085039; Wed, 01 Sep 2010 17:24:45 -0700 (PDT) Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by gmr-mx.google.com with ESMTP id z11si6478349ibb.0.2010.09.01.17.24.44; Wed, 01 Sep 2010 17:24:44 -0700 (PDT) Received-SPF: pass (google.com: domain of randy.fischer@gmail.com designates 209.85.214.174 as permitted sender) client-ip=209.85.214.174; Received: by mail-iw0-f174.google.com with SMTP id 5so7213755iwn.19 for ; Wed, 01 Sep 2010 17:24:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.160.205 with SMTP id o13mr9630810ibx.15.1283387083903; Wed, 01 Sep 2010 17:24:43 -0700 (PDT) Received: by 10.231.12.139 with HTTP; Wed, 1 Sep 2010 17:24:43 -0700 (PDT) Date: Wed, 1 Sep 2010 20:24:43 -0400 Message-ID: Subject: and then there's checkboxes.... From: Randy Fischer To: rack-devel@googlegroups.com X-Original-Sender: randy.fischer@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of randy.fischer@gmail.com designates 209.85.214.174 as permitted sender) smtp.mail=randy.fischer@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Just a note: I've not been able to find, anywhere, docs on how to correctly get checkboxes to POST through rack and sinatra. A colleague from the PHP world said, hey, you gotta append '[]' to the name of the elements... like pepperoni onions anchovies Without that trailing '[]' on the name to coerce rack to store it as an array, you are hosed - when I use "toppings", it's a string, but only the last value checked. Seems very odd, but heh, I understand the decision. I thought I'd get the solution out in google land though. I had no luck trying to find it last night. -Randy Fischer