aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2013-04-07 01:08:57 -0400
committerTeddy Wing2013-04-07 01:08:57 -0400
commit0d17c4761ff44c86c0378189d56f0be2a3ec8484 (patch)
tree625f76a48d0537c41c9e1de62771cb261ce5191a
parentc4ee5d6b51116a4405e7e02b5220ce98d9cccd92 (diff)
downloadclips-0d17c4761ff44c86c0378189d56f0be2a3ec8484.tar.bz2
Reorder Clips so most recent clips appear first
-rw-r--r--clip.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/clip.rb b/clip.rb
index ef3c1ce..debe4a2 100644
--- a/clip.rb
+++ b/clip.rb
@@ -9,7 +9,7 @@ end
module Clip::Controllers
class Index < R '/'
def get
- @clips = Clip.all
+ @clips = Clip.order('created_at desc').all
render :index
end