0

I am listing my reports on reports index page. 10 reports are shown per page. If I am on 5th page and when click on any of the report, show page is displayed but then when I click back button then It goes to first page not on 5th page.

I am using will_paginate-bootstrap gem Any suggestions on this

Sonalkumar sute
  • 2,565
  • 2
  • 17
  • 27

1 Answers1

0
page = (number_of_records_before_RECORD / number_of_records_per_page) + 1

this will solve your query, please visit below link

Item's page and will_paginate

Hope it will help you.

Community
  • 1
  • 1
Hardik Upadhyay
  • 2,639
  • 1
  • 19
  • 34