Skip to content

Commit

Permalink
Order posts by published_at date instead of created_at, since that's …
Browse files Browse the repository at this point in the history
…what's shown in the view.
  • Loading branch information
jasoncheow authored and xaviershay committed Jan 23, 2009
1 parent 80296de commit 25118b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/posts_controller.rb
Expand Up @@ -5,7 +5,7 @@ def index
respond_to do |format|
format.html {
@posts = Post.paginate(
:order => "created_at DESC",
:order => "published_at DESC",
:page => params[:page]
)
}
Expand Down

0 comments on commit 25118b6

Please sign in to comment.