Check_box_tag or check_box which is fit for that?

hi,
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.

Amin

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
checked.

Does that help?
Josh

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