This commit is contained in:
parent
8c46b91661
commit
6b5bf75bee
|
|
@ -5,7 +5,7 @@ class ArticlesController < ApplicationController
|
||||||
# GET /articles
|
# GET /articles
|
||||||
# GET /articles.json
|
# GET /articles.json
|
||||||
def index
|
def index
|
||||||
@articles = Article.order()
|
@articles = Article.order('created_at DESC')
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /articles/1
|
# GET /articles/1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue