title: How to place two columns in a row while using .each method in rails
body: <p>I want to show two columns of the code in table data tag per row while using '.each' method. But the issue is that the following code displays one column in a row.</p>
  <pre><code>&lt;table&gt;
    &lt;% @lease.apartment.roommates.each do |roommate| %&gt;
      &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;
          &lt;% unless roommate == @lease.second_occupant || roommate == @lease.user %&gt;        
            &lt;% if roommate.current_room.present? %&gt;
              &lt;p&gt;
                &lt;%= roommate.full_name %&gt; - 
                &lt;% if roommate.current_room.apartment == @lease.apartment%&gt;
                  &lt;%= roommate.current_room&amp;.label %&gt; 
                &lt;% end %&gt;
                &lt;br&gt;Email:&lt;%= roommate.email %&gt;&lt;br&gt;Phone:&lt;%= roommate.phone %&gt;&lt;br&gt;
                &lt;% if @lease.end_at.present? %&gt;
                  Lease End date (if applicable):&lt;%= @lease.end_at %&gt;
                &lt;% end %&gt;
              &lt;/p&gt;
            &lt;% end %&gt;
          &lt;% end %&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;% end %&gt;
  &lt;/table&gt;
  </code></pre>