From 0b0d780e91ed60025bbc22c562373bce2b3c8f0d Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Wed, 10 Dec 2014 22:06:36 +0100 Subject: [PATCH] Tabs <3 --- app/controllers/products_controller.rb | 1 + app/views/layouts/_header.html.erb | 2 +- app/views/products/index.html.erb | 21 ++++++++++++++++++--- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb index 17f0899..ec7b916 100644 --- a/app/controllers/products_controller.rb +++ b/app/controllers/products_controller.rb @@ -14,6 +14,7 @@ class ProductsController < ApplicationController def index @products = Product.all + @categories = Product.categories end def edit diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 60f5119..2cd2a64 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -40,7 +40,7 @@
  • <%= link_to "List" , users_path %>
  • -
  • <%= link_to 'Download schulden', admins_schulden_path(format: :csv) %>/li> +
  • <%= link_to 'Download schulden', admins_schulden_path(format: :csv) %>
  • <% end %>