modify search bar action http

This commit is contained in:
yanxd 2014-01-14 15:18:18 +08:00
parent d34253bdfc
commit f1f08e150b
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@
<% content_for :top_field do%>
<div style="margin: 10px 5%;">
<%= 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 %>
</div>
<% end %>