Posted By

bordalix on 06/20/07


Tagged

collection radiobox


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

t0d0r
stainless
millisami
webstic


radiobox collection


 / Published in: Rails
 

  1. <% Company.find(:all).each do |c| %>
  2. <input type="radio" name="technology[company_id]" value="<%= c.id -%>"
  3. <% if @technology.company == c -%> checked="checked" <% end -%> />
  4. <%= c.name %></td>
  5. <% end %>

Report this snippet  

You need to login to post a comment.