public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8
class Account < ActiveRecord::Base
has_many :rooms
accepts_nested_attributes_for :rooms
end
class Room < ActiveRecord::Base
belongs_to :account
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.