We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Welcome to the relationships wiki!
Here's how I built it.
[TODO: How did I do Address and Province?]
The User was initially created by:
rails g model User name:string
The Person was initially created by:
rails g model Person name:string user:references
You then have to modify the person.rb file so that the belongs_to line looks like this:
person.rb
belongs_to
belongs_to :user, optional: true
rails g model AddressPerson address:references person:references address_type:string