[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

check_box and form

misiek

3/20/2006 6:18:00 AM

I need use check_box to search function.

sample..

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'%>
<table width = "100%" >
<% @uitems.each do |item| %>
<tr bgcolor = "lightgray">
<td>
<%= check_box("item", "name" ) %>
<%= item.name %>
</td>
</tr>
<%= 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 ?!