<form action="<%= url('/search') %>" method="get" class="search">
  <input class="u-full-width" name="q" type="search" placeholder="Search…">
</form>

<form action="<%= url('/search') %>" method="get" class="search">
  <input
    class="u-full-width"
    name="q"
    type="search"
    placeholder="Search…"
    value="<%= params[:q] %>">
</form>

Make search query stay in input
Make search query stay in input
