diff options
Diffstat (limited to 'app/controllers/blogs_controller.rb')
-rw-r--r-- | app/controllers/blogs_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb index eda1bbb..c35a05d 100644 --- a/app/controllers/blogs_controller.rb +++ b/app/controllers/blogs_controller.rb | |||
@@ -1,7 +1,11 @@ | |||
1 | class BlogsController < ApplicationController | 1 | class BlogsController < ApplicationController |
2 | 2 | ||
3 | def index | 3 | def summary |
4 | @blogs = Blog.where(published: true).order(published_at: :desc).paginate(page: params[:page], per_page: 10) | 4 | @blogs = Blog.where(published: true).order(published_at: :desc).paginate(page: params[:page], per_page: 10) |
5 | end | ||
6 | |||
7 | def index | ||
8 | @blogs = Blog.where(published: true).order(published_at: :desc) | ||
5 | 9 | ||
6 | respond_to do |format| | 10 | respond_to do |format| |
7 | format.html | 11 | format.html |