2013-06-05 37 views

回答

1

options_from_collection_for_select方法的第四個參數是選定的值。 「1」在你的情況。使用options_from_collection_for_select(@event_types, 'id', 'name')

options_from_collection_for_select