check_box

I have one for loop as below

<% for knowledge_base in @knowledge_bases %>

   <td><%= check_box ("knowledge_base", "selection",{},checked_value =
"1", unchecked_value = "0" ) %></td>
   <%= hidden_field "knowledge_base_selected", "id", "value" =>
knowledge_base.id %>
   <td><%= knowledge_base.keyword %></td>
</tr>
<%
end
%>

How can i get only the selected check box ids ie, hiddenfield
"knowledge_base_selected" "id" in the controller?Will I get it as array
in controller?

Sijo

Hi
    Here I tried like following

<td><%= check_box :knowledge_base, :index => "#{knowledge_base.id}"
%></td>

And in controller I get

index10index21index31index40 #If I selected 2,3 check boxes..What
I need is to extract 2,3 from this .How can I do this

Please help
Sijo