I have a rails application where I am using kaminari for pagination.
Somehow kaminari is using wrong url for hyperlinks.
Right now I am looking for an easy fix which requires some regex & gsubbing.
I have this url from kaminari:
"/bookings/hotels//Pune?arrival_date=....."
I want to replace this part - /hotels//Pune?
with this - /hotels?
There could be any other string in place of Pune
(it might change).
How should I do this ?