I am new to Ruby Rails. I am redirecting my page to /user/locations using redirect_to user_locations_url and I want to append a query string like ?code='value' which makes it like user_locations_url?code='value'.
How do i use it with redirect_to to pass query string parameters.
Thank you!