title: Set rooms for users
body: <p>I'm trying to resolve a problem but I don't find the solution. This is my code:</p>
  
  <pre><code>class User &lt; AR::Base
    belongs_to :room
  end
  
  class Room &lt; AR::Base
    has_many :users
  end
  
  class SetupRooms
  
    def initialize
      @users = User.all
      @rooms = Room.all
      @room_max_users = @users.size / @rooms.size
    end
  
    def setup
      groups = @users.in_groups_of(@room_max_users)
      # Now, How Can I fill rooms with users?
    end
  end
  </code></pre>
  
  <p>Thanks</p>