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 ?
ngw
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---