Trouble linking one-to-one models in DataMapper
问题 Using PostgreSQL and DataMapper to build a Sinatra app, running into some problems with DataMapper (I'm very new to it, used to Rails/AR ). For every Account created, it can either be an Artist , Venue , or Fan . Only one, no combining. When the user signs up, I can create the Account instance fine, but I'm having trouble creating the account's has 1 Artist or Venue or Fan instance (for ease of conversation, we'll use Artist as the belonging model). Here's my current model declarations: class