From 8c46b91661da31c9aaaff4be0db2143c95d9cff1 Mon Sep 17 00:00:00 2001 From: ahinz Date: Thu, 11 Dec 2014 15:08:38 +0100 Subject: [PATCH] ` --- app/controllers/articles_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 1e624d8..048eeed 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -1,10 +1,11 @@ class ArticlesController < ApplicationController before_action :set_article, only: [:show, :edit, :update, :destroy] + before_filter :authenticate_user!, only: [:show, :edit, :update, :destroy] # GET /articles # GET /articles.json def index - @articles = Article.all + @articles = Article.order() end # GET /articles/1