diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 13:08:05 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 13:08:05 -0400 |
commit | bf25ee5407f6101c1f60de8fa96d248e02802131 (patch) | |
tree | 26e77bfec54783c9f537fe68d90395118905b995 /app/views/layouts | |
parent | 8b57da0fed6fe05c5df6ccbfcb0a50298521a6b9 (diff) |
Touch up the search bar
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/application.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 116554b..c45fb20 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -18,8 +18,8 @@ <%# This is the search bar #%> <div> <%= form_tag("/search", method: "get", :class => "search") do %> - <%= text_field_tag(:query, nil, :placeholder => "Search") %> - <%= submit_tag("Go", :name=>nil) %> + <%= text_field_tag(:query, params[:query]) %> + <%= submit_tag("Search", :name=>nil) %> <% end %> </div> |