Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

put the pagination in descending order

  • Loading branch information...
commit 888bb58cf89b3e0c528cf4e95afefba17ec39e5c 1 parent 35dc3c3
@aboutaaron authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/tweets_controller.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.