search for: shipmentscontrol

Displaying 1 result from an estimated 1 matches for "shipmentscontrol".

2006 Feb 24
4
Problem having two belongs_to of the same class type
...lt;td><%= collection_select ''shipment'', ''shipped_from'', @branches, ''id'', ''name'' %></td> </tr> <tr> </table> shipments_controller.rb: ------------------------------------------------ class ShipmentsController < ApplicationController def new @branches = Branch.find(:all, :order => ''name'') case request.method when :get @shipment = Shipment.new when :post @shipment = Shipment.new(params[:shipment]) if @shipment.save flash[:no...