made everyting so the lastest is the first thing you see
This commit is contained in:
parent
81016729c4
commit
043924b5f5
5 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ class BlogsController < ApplicationController
|
|||
|
||||
|
||||
def index
|
||||
@blogs = Blog.all
|
||||
@blogs = Blog.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class BookmarksController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@bookmarks = Bookmark.all
|
||||
@bookmarks = Bookmark.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class FriendsController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@friends = Friend.all
|
||||
@friends = Friend.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ class StatusMessagesController < ApplicationController
|
|||
include StatusMessagesHelper
|
||||
|
||||
def index
|
||||
@status_messages = StatusMessage.all
|
||||
@status_messages = StatusMessage.criteria.all.order_by( [:created_at, :desc] )
|
||||
@friends = Friend.all
|
||||
|
||||
respond_to do |format|
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ class UsersController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@users = User.all
|
||||
@users = User.criteria.all.order_by( [:created_at, :desc] )
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue