Replaced f.text_field :msg_code with f.collection_select