Displaying 1 result from an estimated 1 matches for "ship_from_address".
2006 Jun 06
1
Please Help with single table inheritance relationships
...t; Address
  belongs_to :retailer
  def retailer_id= (input)
    person_id = input;
  end
  def retailer_id
    person_id
  end
end
# Made these changes:
class Person < ActiveRecord::Base
  has_one :shipping_address
  has_one :billing_address
end
class Retailer < ActiveRecord::Base
  has_one :ship_from_address
end
---
Now, this all makes some sense to me, but I don''t know that it makes 
Rails sense (and there is no validator or Relationship Manager to tell 
me if it is valid syntax or set of commands), and it does not run:
SQLite3::SQLException: SQL logic error or missing database: SELECT 
cou...