<h2><%= @room.title %></h2>
<p><%= @room.description %></p>
<p>User: <%= @user.email %></p>
<% if user_signed_in? && @room.creator_id == current_user.id %>
    <p>
      <%= link_to 'Delete', chat_path(@room), method: :delete, data: {confirm: 'Are You Sure?'} %>
      <%= link_to 'Edit', edit_chat_path(@room) %>
    </p>
<% end %>

<button class="invite-friends btn btn-success">Invite Your Friends:</button>
<ul class="invite-friends">
    <% @friends.each do |friend| %>
        <li><%= link_to friend.email, controller: 'rooms', action: 'invite_friends',
                        id: @room, user_id: friend unless (friend.rooms.include?(@room)) %></li>
    <% end %>
</ul>

<script type="text/javascript">
    $('ul.invite-friends').hide();
    $('button.invite-friends').click(function(){
        $('ul.invite-friends').slideToggle();
    });
</script>
Add view show for room
Add view show for room
