I am using a select helper in my partial view, as stated in the API doc
<%= select ‘distance’, ‘radius’, [[“2 km” ,2], [“5 km”, 5], [“10 km” ,
10], [“15 km”, 15], [“25 kilomètres”, 25] ], {:selected => 10}, {:style
=> ‘width:90%;’} %>
the generated html is right :
2 km 5 km 10 km 15 km 25 kmbut the selected item in the dropdown remains always the first… (2 km)
what’s wrong ?