diff --git a/app/controllers/packages_controller.rb b/app/controllers/packages_controller.rb index 9d5d3f5..045bada 100644 --- a/app/controllers/packages_controller.rb +++ b/app/controllers/packages_controller.rb @@ -23,6 +23,7 @@ class PackagesController < ApplicationController # first image twice as large. So the first page contains 5 images while # the second and further page contain 6 images. @page = params[:page] + # BUG: having page 1 with 5 and other with 6 items does not compute correctly @images_per_page = if @page.to_i < 2 5 else