added pagination

This commit is contained in:
Harry Bomrah 2014-06-18 18:17:32 +08:00
parent 52278526e8
commit f4396805e9
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ class GalleriesController < ApplicationController
end
{
"albums" => albums,
"extras" => {"widget-title"=>"Gallery"}
"extras" => {"widget-title"=>"Gallery"},
"total_pages" => albums.total_pages
}
end