<%= select_tag 'industry', options_from_collection_for_select(@industry_list, "id", "name", @industry) %>But this would work:
<%= select_tag 'industry', options_from_collection_for_select(@industry_list, "id", "name", @industry.to_i) %>Well, that's for forgetting that HTTP query parameters are strings!
No comments:
Post a Comment