Fill the search bar with the current query parameter
As a user, I should be able to see the term that I searched for in the search bar. Currently, the search bar starts off blank. When the page loads, get the value of the query parameter
q and set that as the
value attribute of the search bar's
input HTML element.
The value of the parameter
q can be accessed through the
params hash by using