Fix rails bug for generate hidden field for select tag.