/ Published in: Rails

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<% Company.find(:all).each do |c| %> <input type="radio" name="technology[company_id]" value="<%= c.id -%>" <% if @technology.company == c -%> checked="checked" <% end -%> /> <%= c.name %></td> <% end %>
Comments
