Report abuse

1
2
3
4
5
6
7
8
9
<% form_tag add_box_order_path(@order) do %>
<p>
  <b>Box:</b>
  <%# select_tag 'box_id', 
    options_for_select(Box.find(:all).collect { |b| 
      [ b.description, b.id ] }) %>
  <%= select_tag 'box_id', options_from_collection_for_select(Box.find(:all, :conditions => "order_id IS NULL"), "id", "description") %>
  <%= submit_tag 'Add Box' %>
<% end %>