Skip to content

Instantly share code, notes, and snippets.

@mauriciofierrom
Created June 8, 2012 22:39
Show Gist options
  • Save mauriciofierrom/2898491 to your computer and use it in GitHub Desktop.
Save mauriciofierrom/2898491 to your computer and use it in GitHub Desktop.
class Person < ActiveRecord::Base
belongs_to :company
has_one :user
accepts_nested_attributes_for :user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment