Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change to 15

  • Loading branch information...
commit 8681eb6eb24a90016bf01824f6d616b48d99203d 1 parent 42645da
Yi-Ting Cheng authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/topics_controller.rb
2  app/controllers/topics_controller.rb
View
@@ -8,7 +8,7 @@ class TopicsController < ApplicationController
before_filter :init_base_breadcrumb
def index
- @topics = Topic.last_actived.limit(15).includes(:node,:user, :last_reply_user)
+ @topics = Topic.last_actived.limit(15).includes(:node,:user, :last_reply_user).paginate(:page => params[:page], :per_page => 15)
set_seo_meta("","#{Setting.app_name}#{t("menu.topics")}")
drop_breadcrumb(t("topics.hot_topic"))
#render :stream => true
Please sign in to comment.
Something went wrong with that request. Please try again.