Skip to content

Commit

Permalink
put the pagination in descending order
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutaaron committed Feb 28, 2013
1 parent 35dc3c3 commit 888bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tweets_controller.rb
@@ -1,6 +1,6 @@
class TweetsController < ApplicationController class TweetsController < ApplicationController
def index 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 end


def new def new
Expand Down

0 comments on commit 888bb58

Please sign in to comment.