Displaying 1 result from an estimated 1 matches for "peoplekind".
2005 Dec 31
3
Sort or Order a <Select> box.
Evening folks,
I''m new to RoR, and have found some very useful info on this site,
thanks.
I have a select box that I need to sort.
<select name="people[peoplekind_id]">
<% @peoplekinds.each do |peoplekind| %>
<option value="<%= peoplekind.id %>"
<%= '' selected'' if peoplekind.id == @people.peoplekind_id %>>
<%= peoplekind.name %>
</option>
<% end %>
</select></p>
<inp...