rails check_box_tag value is NULL
Posted
by looloobs
on Stack Overflow
See other posts from Stack Overflow
or by looloobs
Published on 2010-03-23T20:15:35Z
Indexed on
2010/03/23
20:33 UTC
Read the original article
Hit count: 281
Hi I am not sure why I am having this problem, maybe I am using the check_box_tag incorrectly.
I have a form that is used to send an email message. You are supposed to be able to choose one or more boxes that represent different groups of people.
<%= check_box_tag (:bcc_email, value = @spouses) %> <%= f.label :bcc_email, "Company Spouses" %><br />
<%= check_box_tag (:bcc_email, value = @soldiers) %> <%= f.label :bcc_email, "Company Soldiers" %><br />
The values are an array of email addresses. Those work fine, I have had them functioning as drop down menus for sometime.
When I look at the HTML page source the values are there, they are just not being passed along with the create method.
Any ideas?
© Stack Overflow or respective owner