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 Amin
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> hi,
> When I use
> <% for count in @total_cellno %>
> <%= check_box_tag("checkbox", value = count, checked = false)
%>
> <% end %>
> It produce the html
> <input id="checkbox" name="checkbox"
type="checkbox" value="0" />
> .
> .
> .
> <input id="checkbox" name="checkbox"
type="checkbox" value="3" />
>
> 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
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---