I have a website with a form for location on the front page. I want to auto-populate the form with values based on a URL string. How can I do this in rails?
For example, I would like the form to show with the value New York when the user arrives on the front page based on something like: website.com?city="New York"
How best to implement this in rails?