add readme

This commit is contained in:
Josh
2018-06-13 16:33:23 -04:00
parent bc67d9e1e5
commit 37d9ae4136
3 changed files with 28 additions and 14 deletions

View File

@ -7,6 +7,8 @@ class RoomsController < ApplicationController
# POST /r
def create
redirect_to root_path unless current_user
@room = Room.new(name: room_params[:name])
@room.owner = current_user

View File

@ -25,7 +25,7 @@
<div class="item-action dropdown">
<a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
<div class="dropdown-menu dropdown-menu-right">
<%= button_to root_path, class: "dropdown-item" do %>
<%= link_to room, class: "dropdown-item" do %>
<i class="dropdown-icon fas fa-cog"></i> Room Settings
<% end %>
<% if room != current_user.main_room %>