Hi,
I have multiple checkboxes in a table each one representing an item.
They are like this:
[…]
<%= check_box "incidencias_ids", incidencia.id %>
<%=h incidencia.cliente.nombre %>
[...]
In the controller I have:
incidencias_ids = params[:incidencias_ids]
@incidencias = []
for id in incidencias_ids
@incidencias << Incidencia.find_by_id(id)
end
I think this is enough to send all the checked checkboxes and manipulate
them.
But I don’t know how to send all the checkboxes to the controller! I
know how to do it with link_to_remote but the answer is not displayed…