Displaying 1 result from an estimated 1 matches for "sub_equipment".
2006 Mar 22
0
Another Problem with params
...re.rb file is as under
class Spare < ActiveRecord::Base
belongs_to :department, :class_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 %>...