我有这个搜索控制器网址:
http://localhost:3000/search/index?utf8=✓&search=Search_terms
如何将其修剪为:
http://localhost:3000/search=query
搜索代码:
#search-box
#search-form
= form_tag search_index_path, :method => 'get' do
= text_field_tag :search, params[:search], :autocomplete => "off"
%button#search-button{:type => "submit"}
%span Go!
或者这可能吗?
请指教。