parent
20d35e7162
commit
7c338ff4bc
|
@ -49,7 +49,7 @@ class PersonalBooksController < ApplicationController
|
||||||
else
|
else
|
||||||
page_to_show = params[:page_no].to_i
|
page_to_show = params[:page_no].to_i
|
||||||
end
|
end
|
||||||
books = books_show[(page_to_show-1)page_data_count...page_to_show*page_data_count]
|
books = books_show[(page_to_show-1)*page_data_count...page_to_show*page_data_count]
|
||||||
books_total_pages = (books_show.length/page_data_count.to_f).ceil
|
books_total_pages = (books_show.length/page_data_count.to_f).ceil
|
||||||
else
|
else
|
||||||
books_total_pages = books.total_pages
|
books_total_pages = books.total_pages
|
||||||
|
|
Loading…
Reference in New Issue