Permalink
Browse files

put the pagination in descending order

  • Loading branch information...
1 parent 35dc3c3 commit 888bb58cf89b3e0c528cf4e95afefba17ec39e5c @aboutaaron committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/tweets_controller.rb
@@ -1,6 +1,6 @@
class TweetsController < ApplicationController
def index
- @tweets = Tweet.paginate(:page => params[:page], :per_page => 10)
+ @tweets = Tweet.paginate(:page => params[:page], :per_page => 10, :order => "created_at DESC")
end
def new

0 comments on commit 888bb58

Please sign in to comment.