I am providing the calendar option for user to select date. But I want to restrict a user entering date using keyboard. Does anyone know how to do that?
This is the code that I am using for calendar functionality -
form do |f|
f.inputs do
f.input :expires_at, as: :datepicker, default: Date.today + 1.month, selected: Date.today + 1.month, include_blank: false, datepicker_options: { min_date: Date.current + 1.day, max_date: Date.current + 12.months }
end
f.actions
end