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