% @messages.each do |message| %>
<% if message.content %>
<%= message.content.gsub("\n", "
").html_safe %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>
attachment [click here to view]
<% end %>
<% end %>