Hi @all i hope someone can help me with my problem or give me a hint;-) okay let''s start : I have a "has and belongs to many"-association. I dont want to use a select box to show and edit the associations (<%= select_tag "sel[]", options_from_collection_for_select(Hallen.find_all, :ID, :name, @gewinnspiel.hallen.collect {|t| t.id}), :multiple => true %>) i want to use a table with checkboxes but where can i realise it? list and show if something is associated or selected is no problem... <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td class="TableHead"> ID </td> </tr> <% for row in @spielhallen %> <tr> <td class="TableInhalt"> <% if not @gewinnspiel.hallen(row.ID).nil? %> <%= image_tag("remove.gif", :border => 0) %> <% end %> </td> </tr> <% end %> </table> greets Nico -- Posted via http://www.ruby-forum.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?hl=en -~----------~----~----~----~------~----~------~--~---