<%= form_tag url_for(new_manage_listing_media_path(3)),:method => 'get' do -%>
<%= label_tag ':name', "Choose media:" %>
<%= select_tag "id", options_from_collection_for_select(@listing, "id", "name")%>
<%= submit_tag("OK") %>
<% end %>
实际上我想要的是 in form_tag url_for(new_manage_listing_media_path(3))
,而不是 3 我想放select_tag
's selected 值。
谢谢,阿里夫