Rails:在ActionView-Helper'collection_select'中预选一个值
我试图让ActionView-Helper collection_select获取将在下拉菜单中预选的值。 无论(:selected在HTML选项哈希) <%= collection_select(:my_object, :my_method, @my_collection, :id, :description_string, {}, {:selected => @my_collection_ob