diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-09 20:00:21 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-09 20:00:21 -0700 |
| commit | 64dd29d70ddda6f4927e9352e3e90c4f87b5041a (patch) | |
| tree | 3a8a88be0418e6537454cddaba4f88e4261f0f36 /app/controllers/agents_controller.rb | |
| parent | 99eb8e0e8ba68bfdc6f97d58af2e7a1d7ba2e3ba (diff) | |
display created at for agents and sort by created_at descending.
Diffstat (limited to 'app/controllers/agents_controller.rb')
| -rw-r--r-- | app/controllers/agents_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/agents_controller.rb b/app/controllers/agents_controller.rb index 4acef9d..dc2717a 100644 --- a/app/controllers/agents_controller.rb +++ b/app/controllers/agents_controller.rb @@ -1,6 +1,6 @@ class AgentsController < ApplicationController def index - @agents = Agent.all + @agents = Agent.all.order(created_at: :desc) end def show |
