Return to Snippet

Revision: 3221
at June 20, 2007 03:04 by bordalix


Initial Code
<% Company.find(:all).each do |c| %>
<input type="checkbox" name="technology[company_ids][]" value="<%= c.id %>" 
<% if @technology.companies.include?(c) -%> checked="checked" <% end -%> />
<%= c.name %></td>
<% end %>

Initial URL

                                

Initial Description

                                

Initial Title
checkbox with associated values checked

Initial Tags

                                

Initial Language
Rails