Class: TestRedirectController

Inherits:
Rubee::BaseController show all
Defined in:
lib/tests/controllers/base_controller_test.rb

Instance Method Summary collapse

Methods inherited from Rubee::BaseController

attach_websocket!, #css, #extract_params, #handle_websocket, #headers, #image, #initialize, #js, #params, #render_template, #response_with, #websocket, #websocket_connections

Methods included from Rubee::Hookable

included

Constructor Details

This class inherits a constructor from Rubee::BaseController

Instance Method Details

#indexObject



12
13
14
# File 'lib/tests/controllers/base_controller_test.rb', line 12

def index
  response_with(type: :redirect, to: '/test')
end

#testObject



16
17
18
# File 'lib/tests/controllers/base_controller_test.rb', line 16

def test
  response_with(type: :json, object: { ok: :ok })
end

#test_meObject



20
21
22
# File 'lib/tests/controllers/base_controller_test.rb', line 20

def test_me
  response_with(type: :json, object: { ok: :ok })
end