Displaying 1 result from an estimated 1 matches for "spare_depart".
2006 Mar 22
0
Another Problem with params
..._name => ''department'', :foreign_key
=> ''department_id''
belongs_to :subequipment, class_name => ''subequipment'',
:foreign_key => ''sub_equipment''
<snip>
My view reads
<snip>
<p><label for="spare_department">Department</label><br/>
<select name="spare[department_id]">
<% @departments.each do |department_id| %>
<option value="<%= department_id.id %>">
<%= department_id.department_name %>
</option>
<% end %>
<...