Signed-off-by: Adrian Hinz <ahinz@voicetelecom.pl>

This commit is contained in:
Adrian Hinz 2016-09-30 20:55:29 +02:00
parent d312b84507
commit 61e40939bf
3 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,4 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
end

View File

@ -1,7 +1,5 @@
class CustomersController < ApplicationController
before_action :authenticate_user!
def index
@customers = Customer.all
end

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Invoice Keeper</title>
<title>FireStorm - Faktury</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%= csrf_meta_tags %>
@ -16,7 +16,7 @@
<div class="col-md-5">
<!-- Logo -->
<div class="logo">
<h1><a href="index.html">Invoice Keeper</a></h1>
<h1><a href="index.html">FireStorm - Faktury</a></h1>
</div>
</div>
<div class="col-md-5">