Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.