/
techgrant
/
ourresource
Обзор
Документация
Войти
/
techgrant
/
ourresource
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
app/controllers/main_controller.rb
21 строка
480 B
grant88
asdf
17 янв 2013, 02:23
17 янв 2013, 02:23
42e28ca
Код
Авторство
О чём код?
class MainController < ApplicationController def index if session[:user] == nil @admin_path = '/admin/index' @specialist_path = '/admin/index' else if session[:user][:admin] @admin_path = '/specialists' @specialist_path = '/admin/index' else @specialist_path = '/specialist_enter/show_visits' @admin_path = '/admin/index' end end end def logout session[:user]=nil redirect_to('/') end end