From f4396805e999bfb2067718e509170f38537b8777 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 18 Jun 2014 18:17:32 +0800 Subject: [PATCH] added pagination --- app/controllers/galleries_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 7e8e4e7..3d4dc83 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -10,7 +10,8 @@ class GalleriesController < ApplicationController end { "albums" => albums, - "extras" => {"widget-title"=>"Gallery"} + "extras" => {"widget-title"=>"Gallery"}, + "total_pages" => albums.total_pages } end