search for: loantype

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

Did you mean: loan_type
2006 Jan 06
6
HABTM problem not saving all associations
...RE--- class Order < ActiveRecord::Base belongs_to :account has_and_belongs_to_many :loan_types has_and_belongs_to_many :products has_many :order_notes has_one :structure_type has_one :order_state end class Product < ActiveRecord::Base has_and_belongs_to_many :orders end class LoanType < ActiveRecord::Base has_and_belongs_to_many :orders end chunk of orders_controller.rb: def create @order = Order.new(params[:order]) @order.products = Product.find(params[:product_ids]) if params[:product_ids] @order.loan_types = LoanType.find(params[:loan_type_ids]) if para...