を二つの関連モデル(STI)との間に、ユーザーの選択肢を与える私のモデルです: class BillingProfile < ActiveRecord::Base
belongs_to :student
attr_accessible :cost
end
class PerEventBillingProfile < BillingProfile
belongs_
私は都市、地域、異なる国での使用のための郵便番号をモデル化する「最良の」方法について考えています。 (アプリケーションは、さまざまな言語で使用されるべきである) 私の最初の推測では、次のとおりです。 class City {
String name
String region
static hasMany = [postcodes:PostCode]
sta