This commit is contained in:
ahinz 2014-12-11 15:08:38 +01:00
parent 79ab1c43e2
commit 8c46b91661
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
class ArticlesController < ApplicationController class ArticlesController < ApplicationController
before_action :set_article, only: [:show, :edit, :update, :destroy] before_action :set_article, only: [:show, :edit, :update, :destroy]
before_filter :authenticate_user!, only: [:show, :edit, :update, :destroy]
# GET /articles # GET /articles
# GET /articles.json # GET /articles.json
def index def index
@articles = Article.all @articles = Article.order()
end end
# GET /articles/1 # GET /articles/1