Many check_boxes

I need use check_box to search function.


I got like 10 items and each item has over 10 subitems ( or whatever )
Need to check some items use check_boxes and display all subitems
belongs to checked items.

<%= start_form_tag :action => ‘find_ckecked’%>

<% @uitems.each do |item| %>

<%= submit_tag “search” %>
<%= end_form_tag %>

I have no ideas how to do that please if some body did that before could
give some clues ?!

<%= check_box(“item”, “name” ) %>
<%= %>

misiek wrote:

I need use check_box to search function.

<%= start_form_tag :action => ‘find_ckecked’%>


This specifically Rails question is off-topic here. Try the Rails list:

You’ll get better answers for Rails questions like this there.

In direct answer to your question, you probably want to toggle the
property of the children between “none” and “” (default). The
JavascriptHelper might be of use:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs