Class: DashboardController

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

Instance Attribute Summary

Attributes inherited from ApplicationController

#meta_data, #meta_description, #meta_keywords, #meta_title, #page_title, #site_name

Instance Method Summary collapse

Methods included from SessionsHelper

#sessions_current_user, #sessions_current_user=, #sessions_sign_in, #sessions_sign_out, #sessions_signed_in?

Instance Method Details

#indexObject

GET '/'



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

def index
  redirect_to , status: 301 and return unless sessions_signed_in?
  @page_title = 'Your dashboard'
end