Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created August 28, 2012 19:40
Show Gist options
  • Save erez-rabih/3503221 to your computer and use it in GitHub Desktop.
Save erez-rabih/3503221 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
attr_accessible :name
has_many :accounts
end
class Account < ActiveRecord::Base
attr_accessible :kind, :user_id
belongs_to :user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment