Select helper is a mess


#1

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 km

but the selected item in the dropdown remains always the first… (2 km)

what’s wrong ?


#2

Kad K. schrieb:

I am using a select helper in my partial view, as stated in the API doc
[…]

but the selected item in the dropdown remains always the first… (2 km)

what’s wrong ?

http://www.thescripts.com/forum/thread521870.html

hth

best regards,
Roland