This commit is contained in:
parent
79ab1c43e2
commit
8c46b91661
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue