Tag Archives: has_one :through Association

The has_one :through Association in rails

  Refer above figure and the tables suppliers,accounts,account_histories A has_one :through association sets up a one-to-one connection with another model. 1) In Supplier model want to mention as follows class Supplier < ActiveRecord::Base has_one :account has_one :account_history, :through => :account … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , | Leave a comment