Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created July 12, 2011 18:12
Show Gist options
  • Save jonpaul/1078572 to your computer and use it in GitHub Desktop.
Save jonpaul/1078572 to your computer and use it in GitHub Desktop.
quickie example
@supervisor = User.find(1)
@staff = User.find(2)
@supervisor.relationships.build(:staff_id => @staff.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment