I use pagination in our Ruby on Rails application, and the pages are defined in the request with a query string parameter like
http:
I use this on our first page, where the page number is not explicitly specified.
I would like to do a check to see if there is a query string, and if not, then display the correct page = 1, redirecting it to this page, I assume
Does anyone know how I can do this?
Thanks for any help
source share