J
JZ
I cannot find out what type of variable shoud be used as option_tags in
select_tag(name, option_tags = nil, options = {}).
I used array, hash, nothing works.
<%=select_tag('test', option_tags=[1,2,3])%>
result:
<select id="test" name="test">123</select>
<%=select_tag('test', option_tags={'1'=>'one', '2'=>'two'})%>
result:
<select id="test" name="test">1one2two</select>
select_tag(name, option_tags = nil, options = {}).
I used array, hash, nothing works.
<%=select_tag('test', option_tags=[1,2,3])%>
result:
<select id="test" name="test">123</select>
<%=select_tag('test', option_tags={'1'=>'one', '2'=>'two'})%>
result:
<select id="test" name="test">1one2two</select>