added chat room controllers

This commit is contained in:
Beatrice Olivera 2018-08-29 14:09:12 +01:00
parent 085e402c4d
commit 68d55cbcd8
5 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,6 @@
class ChatRoomsController < ApplicationController
def create
end
end

View File

@ -0,0 +1,8 @@
class RequestsController < ApplicationController
def update
request.accepted = true
# Create new Chat Room
end
end

View File

@ -50,7 +50,7 @@ Rails.application.configure do
config.action_cable.allowed_request_origins = [ '*' ] config.action_cable.allowed_request_origins = [ '*' ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information # Use the lowest log level to ensure availability of diagnostic information
# when problems arise. # when problems arise.

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ChatRoomsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class RequestsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end