<h1><%= @chat.title %></h1>

<div id="messages">
  <%= render @chat.messages %>
</div>
<h1><%= @chat.title %></h1>

<div id="messages">
  <%= render @chat.messages %>
</div>

<%= form_for @message, url: '#' do |f| %>
  <div class="form-group">
    <%= f.label :body %>
    <%= f.text_area :body, class: 'form-control' %>
    <small class="text-muted">From 2 to 1000 characters</small>
  </div>

  <%= f.submit "Post", class: 'btn btn-primary btn-lg' %>
<% end %>
Add message form to chat show page.
Add message form to chat show page.
