Skip to content

Commit 8db7510

Browse files
committed
quotes order
default / root route is quotes
1 parent 78afc3a commit 8db7510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/quotes_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class QuotesController < ApplicationController
22
before_action :set_quote, only: [:show, :edit, :update, :destroy]
33

44
def index
5-
@quotes = Quote.all
5+
@quotes = Quote.all.order(updated_at: :asc)
66
end
77

88
def show

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
get "up" => "rails/health#show", as: :rails_health_check
77

88
# Defines the root path route ("/")
9-
# root "posts#index"
9+
root "quotes#index"
1010

1111
resources :quotes
1212
end

0 commit comments

Comments
 (0)