<h2>Where are you from?</h2>
<form>
<select name="URL" onchange="window.location.href= this.form.URL.options[this.form.URL.selectedIndex].value">
<option value="#">Connecticut</option>
<option value="#">Michigan</option>
</select>
</form>
我想将已删除的值链接到pages_connecticut_path和pages_michigan_path
答案 0 :(得分:0)
解决这个问题:
<option><%= link_to 'Connecticut', pages_connecticut_path %></option>
<option> <%= link_to 'Michigan', pages_michigan_path %></option>