simple_forms custom data attribute July 29, 2023 by Tarik The correct API is: f.input :date, :as => 'date_picker', :input_html => { :data => {:datepicker => :datepicker} }