From 928a39dceaad6b73891de9bfe96bb6c5a97e10f5 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 8 Aug 2013 20:29:55 +0200 Subject: [PATCH] Re-displaying search query from previous search in text field --- app/views/packages/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/packages/index.html.erb b/app/views/packages/index.html.erb index 9ddd5c3..d9247c2 100644 --- a/app/views/packages/index.html.erb +++ b/app/views/packages/index.html.erb @@ -3,7 +3,7 @@

Search for a package/description:

<%= form_tag(url_for, method: "get") do %> - <%= text_field_tag :search, '', autofocus: true, placeholder: 'What are you looking for...' %> + <%= text_field_tag :search, params[:search], autofocus: true, placeholder: 'What are you looking for...' %> | With screenshots? <%= check_box_tag 'with_screenshots', 'yes', true %> |