forked from External/greenlight
add readme
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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 %>
|
||||
|
Reference in New Issue
Block a user