summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-23 13:08:05 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-23 13:08:05 -0400
commitbf25ee5407f6101c1f60de8fa96d248e02802131 (patch)
tree26e77bfec54783c9f537fe68d90395118905b995 /app/views/layouts
parent8b57da0fed6fe05c5df6ccbfcb0a50298521a6b9 (diff)
Touch up the search bar
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/application.html.erb4
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>