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