From 3b6e97870b0aaf2640f70503e48038217a725517 Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Fri, 15 Apr 2022 21:33:51 +0200 Subject: [PATCH] page off --- app/controllers/home_controller.rb | 5 +++ public/404.html | 1 + public/500.html | 1 + public/construction.html | 67 ++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 public/construction.html diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 80b253c..3647060 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -3,6 +3,11 @@ # Home class HomeController < ApplicationController layout 'home_layout' + before_action :check_status + + def check_status + redirect_to '/construction.html' + end def index require 'json' diff --git a/public/404.html b/public/404.html index f939a27..753465c 100644 --- a/public/404.html +++ b/public/404.html @@ -1,6 +1,7 @@ + The page you were looking for doesn't exist (404) + + + + +
+
+

Strona w trakcie budowy.

+

Zapraszamy do wizyty w późniejszym terminie.

+
+
+ +