Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Created November 11, 2012 17:44
Show Gist options
  • Save raysrashmi/4055657 to your computer and use it in GitHub Desktop.
Save raysrashmi/4055657 to your computer and use it in GitHub Desktop.
class Account < ActiveRecord::Base
has_many :rooms
accepts_nested_attributes_for :rooms
end
class Room < ActiveRecord::Base
belongs_to :account
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment