rails check_box_tag value is NULL
- by looloobs
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?