From 543dc3443f824b44e707d664adc40effa2abac02 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Thu, 22 Aug 2019 17:24:54 +0800 Subject: [PATCH] message order --- app/controllers/messages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index e646fefab..fa16882f7 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -52,7 +52,7 @@ class MessagesController < ApplicationController @messages = @messages.visible end - @messages = @messages.order("created_on desc") + @messages = @messages.order("messages.created_on desc") @messages = @messages.page(@page).per(@page_size) end