Commit 9345fce4 by ivan Lan

Recover old :paginate for the missing content :current_page & :total_page

parent 4ae1e3e7
......@@ -75,8 +75,8 @@ module Shotengai
def index
page = params[:page] || 1
per_page = params[:per_page] || 10
# @resources = index_resources.paginate(page: page, per_page: per_page)
@resources = paginate(index_resources, page: page, per_page: per_page)
@resources = index_resources.paginate(page: page, per_page: per_page)
# @resources = paginate(index_resources, page: page, per_page: per_page)
respond_with @resources, template: "#{@template_dir}/index"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment