justinfrench/formtastic — Issue #731: Check boxes from a collection add a "" value
Author: davidray
Created: 2011-10-30 01:07:02+00:00
State: open

Here's my input code:

= f.input :report_columns, :label => "Columns", :as => :check_boxes, :collection => ["One", "Two", "Three"]

If I check just three and submit, the value I get for report columns is:

"report_columns"=>["", "Thre"]

Thanks. I heart formtastic.

Dave