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 %>