Voici mon code Ruby:Comment changer le format de mon paramètre?
<%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%>
Après avoir choisi une date, j'ai ce résultat:
Je veux que le paramètre devient un format facile à lire comme :
http://localhost:3000/orders?from=25/01/2010&to=25/01/2010
Que dois-je faire?