jam-cloud/app/controllers/clients_controller.rb

17 lines
325 B
Ruby

class ClientsController < ApplicationController
include UsersHelper
def index
# use gon to pass variables into javascript
gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_uri
if current_user
render :layout => 'client'
else
redirect_to "/signin"
end
end
end