I am trying to figure out a way I can have a new line in a cell so it is displayed in this format:
Phone Number 1
Phone Number 2
Phone Number 3
Let me show you the code that I have now so that you may understand my problem:
<tbody>
<% @books.each do |book| %>
<% record = AddressBookController.address_book(book.id) %>
<tr>
<td><%= record['last_name'] %></td>
<td><%= record['phone_numbers'].join ', ' %></td></td>
</tr>
<% end %>
</tbody>
The .join will break up the array and display it like this: Phone Number 1, Phone Number 2, Phone Number 3
How can I make it show like first example in this post?