Skip to content

Commit

Permalink
Merge pull request #33 from ibikecph/develop
Browse files Browse the repository at this point in the history
fixed blog order
  • Loading branch information
viktorshamal committed Oct 7, 2015
2 parents 0cc7038 + 03910a3 commit cf96fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/blog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BlogController < ApplicationController
before_filter :check_return_path, only: :show

def index
@blog_entries = BlogEntry.all.paginate page: params[:page], per_page: 10
@blog_entries = BlogEntry.news.latest.paginate page: params[:page], per_page: 10
end

def archive
Expand Down

0 comments on commit cf96fad

Please sign in to comment.