Displaying 1 result from an estimated 1 matches for "boat_class_id".
2007 Oct 15
0
converting from HABTM to has_many :through
...[:boat_classes].include? boat_class.id
params[:boat_classes].delete boat_class.id
else
i.included = false
end
flash[:notice] = ''inclusion failure'' if !
i.update_attribute(:included, i.included)
}
params[:boat_classes].each { |boat_class_id|
boat_class = BoatClass.find boat_class_id
logger.info "*** boat class #{boat_class.name} inclusion not
found"
@regatta.inclusions << Inclusion.new { |i|
i.boat_class_id = boat_class_id
i.included = true
flash[:notice] = ...