Check_box_tag or check_box which is fit for that?

When I use
<% for count in @total_cellno %>
<%= check_box_tag(“checkbox”, value = count, checked = false) %>
<% end %>
It produce the html


And controller model
@total << params[:checkbox]

but the controller model holds one value from the chacked values.

using check_box() I can not fullfill my condition as I can not changed
the value of each check box.

So please help me to reach to my goal.


I believe if you make the name of the checkbox, “checkbox[]”, instead
of “checkbox”, it will give you a list of the values that were

Does that help?

On May 27, 9:48 pm, Ichikawa A. [email protected]