OSDN Git Service

t#31470:create pager
[pettanr/pettanr.git] / app / controllers / ground_colors_controller.rb
index 710a43d..c74e930 100644 (file)
@@ -15,7 +15,9 @@ class GroundColorsController < ApplicationController
     @ground_colors = GroundColor.list(@page, @page_size)
 
     respond_to do |format|
-      format.html # index.html.erb
+      format.html {
+        @paginate = GroundColor.list_paginate(@page, @page_size)
+      }
       format.json { render :json => @ground_colors.to_json(GroundColor.list_json_opt) }
     end
   end