# -*- coding: utf-8 -*-
class HomeController < ApplicationController
  
  def index
#      render :template => "/construction.html", :status => 500
    if params[:department]
      case params[:department]
        when "corp"
        redirect_to corp2_index_path()
        when "soft"
        redirect_to soft_index_path()
        when "private"
        redirect_to private_index_path()
        when "mod"
        redirect_to mod2_index_path()
        when "ams"
        redirect_to ams_index_path()
        when "alp"
        redirect_to alps_path()
        when "welder"
        redirect_to welders_path()
        when "reception"
        redirect_to receptions_path()
        when "btul2"
        redirect_to btul2_path()
        when "office"
        redirect_to office_mats_path()
        when "construction"
        redirect_to constr_works_path()
        when "between_logins"
        redirect_to other_works_path()
        when "to_login"
        redirect_to other_works_path()
        when "undergroung"
        redirect_to undergrounds_path()
        end
    end
  end

end
