Set micropost sort order

This commit is contained in:
Trevor Vallender 2023-09-29 16:11:52 +01:00
parent 0a4bfa86f9
commit e53f500e37
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class MicropostsController < ApplicationController
before_action :set_micropost, only: [:show]
def index
@microposts = Micropost.all
@microposts = Micropost.all.order(created_at: :desc)
end
def new