fixed a small bug in pagination

This commit is contained in:
Harry Bomrah 2014-06-18 14:46:47 +08:00
parent 251505e5cd
commit 9b65de3914
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ module ApplicationHelper
start_number = 1
end_number = 5
end
end_number = end_number > total_pages ? total_pages : end_number
(start_number..end_number).each do |i|
h = in_html
h = h.gsub("%7B%7Bpagination_link%7D%7D","?page_no=#{i.to_s}")