I want to get some specific value from string of Rails like below these are two string.
1. "http://localhost:3000/admin/shops/assign_shoes?id=50&page=1"
2. "http://localhost:3000/admin/shops/assign_shoes?id=50"
I always need value of "id" which is "50". Don't matter how many parameters are in string
as query string.
Actually these strings are values of request.referer
Any efficient method?
Thanks