Check boxes from a collection add a "" value #731

Closed
davidray opened this Issue Oct 30, 2011 · 1 comment

Projects

None yet

2 participants

@davidray

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"=>["", "Three"]

Thanks. I heart formtastic.

Dave

@justinfrench
Owner

Thanks for the kind words.

I believe this is a duplicate of #697, for which there are two related pull requests #702 and #705, all of which are under debate, so I'm going to close this down, feel free to chime in on #697 or the pulls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment