Class: WelcomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/welcome_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#dev_only, #require_login

Methods included from SessionsHelper

#console?, #current_user, #debug?, #forget, #log_in, #log_out, #logged_in?, #remember, #toggle_console, #toggle_debug

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/welcome_controller.rb', line 4

def index
  if logged_in?
    @user = User.find(session[:user_id])
  end
end