From f1f08e150b95cfeedda4b65f7a3a60c0b9959ddf Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 14 Jan 2014 15:18:18 +0800 Subject: [PATCH] modify search bar action http --- app/views/stores/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index c32231859..165280691 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -63,9 +63,9 @@ <% content_for :top_field do%>
- <%= form_for('#', :remote => true) do |f| %> - <%= f.text_field :name, size:"100", placeholder:'请输入要搜索的关键字' %> - <%= f.submit value:"search", class:"whiteButton m3p10 h30"%> + <%= form_tag( search_stores_path, method: 'get') do %> + <%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字' %> + <%= submit_tag l(:label_search), class:"whiteButton m3p10 h30"%> <% end %>
<% end %>