Class: UcbRails::HomeController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/ucb_rails/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexnil

Renders either a “logged in” page or a “logged out” page. Mainly used for getting going with the ucb_rails gem.

Not intended for production use.

Returns:

  • (nil)


8
9
10
11
12
13
14
# File 'app/controllers/ucb_rails/home_controller.rb', line 8

def index
  if logged_in?
    render 'logged_in'
  else
    render 'not_logged_in'
  end
end