Метод 1 (сложный)
Переопределите код date_select
для обработки этого специального экземпляра для вас: https://github.com/rails/rails/blob/master/actionview/ lib / action_view / helpers / date_helper.rb # L283
Способ 2 (простой)
Использовать jQuery:
// Find all select boxes that have an ID attribute containing "birthday"
// and wrap a div tag around them with a certain class
$('select[id*="birthday"]').wrapAll('');
0
задан trincot 28 February 2019 в 14:32
поделиться