Fill the search bar with the current query parameter
Summary
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 params[:q]
.
Helpful Links
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information