<% form_tag '/wine/search/',:method => 'get' do %> <%= label_tag "Search" %> <%= text_field_tag :search_string,params[:search_string] %> <%= submit_tag "Go" %> <% end %>
谢谢
submit_tag "Go",:class => "some_class" submit_tag "Go",:id=> "some_id"
从Rails API FormTagHelper