Here is my Ruby Code:
<%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%>
After I choose some date, I have this result:
http://localhost:3000/orders?from[%283i%29]=25&from[%282i%29]=1&from[%281i%29]=2010&to[%283i%29]=25&to[%282i%29]=1&to[%281i%29]=2010
I want the parameter become a easy to read format like:
http://localhost:3000/orders?from=25/01/2010&to=25/01/2010
What should I do?