I have the following model: class CostCode < ActiveRecord::Base end
class SubContractor < ActiveRecord::Base has_many :orders belongs_to :cost_code end class Order < ActiveRecord::Base belongs_to :sub_contractor belongs_to :cost_code end The UI for Order.sub_contractor is a select box. When I select the sub_contractor on the order, how can I chain the fields so that the sub_contractor.cost_code is used to populate the order.cost_code? -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
