module Trestle class Form module Fields class RangeField < Field def field builder.raw_range_field(name, options) end def defaults super.merge(class: ["form-range"]) end end end end end Trestle::Form::Builder.register(:range_field, Trestle::Form::Fields::RangeField)