sessions and fixes

This commit is contained in:
Josh
2018-05-22 16:58:11 -04:00
parent f189c98c56
commit 434021239c
10 changed files with 98 additions and 27 deletions

View File

@ -1,7 +1,7 @@
class RoomsController < ApplicationController
before_action :find_room, :verify_room_ownership
skip_before_action :verify_room_ownership, only: [:index, :join, :wait]
skip_before_action :verify_room_ownership, only: [:show, :join, :wait]
# GET /r/:room_uid
def index
@ -82,6 +82,10 @@ class RoomsController < ApplicationController
redirect_to room_path(@room.uid)
end
# GET /r/:room_uid/sessions
def sessions
end
private
# Find the room from the uid.
@ -111,4 +115,4 @@ class RoomsController < ApplicationController
redirect_to root_path
end
end
end
end