check_box issue

Hi *, I have a list of objects and I want to let the user choose what to add and what to discard - basically I search a remote web service and I have a list of hashes, the user has to choose between one or more of them and add the data to the DB. I'm trying to figure out how to do it with checkboxes, and the only way I found is doing something like this inside an each_with_index |release, index| :

<%= check_box "release", "#{index}]", {}, release['id'], 0 %>

It works, but I'd really like to remove all 0 values, I don't need them ...

Suggestions ?

   ngwChiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com