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