這是我的Ruby代碼:如何更改我的參數格式?
<%form_tag orders_path, :method => 'get' do%>
From
<%= date_select ("from", "", :start_year => 2010, :order => [:day, :month, :year])%>
To
<%= date_select ("to", "", :start_year => 2010, :order => [:day, :month, :year])%>
<%= submit_tag "Search", :name => nil%>
<%end%>
我選擇一些日期後,我有這樣的結果:
我想要的參數成爲一個易於閱讀的格式一樣:
http://localhost:3000/orders?from=25/01/2010&to=25/01/2010
我該怎麼辦?