class DatabaseValidation::ViewHelpers::ActionView::Helpers::FormBuilder
Public Instance Methods
text_field_with_maxlength(method, options = {})
click to toggle source
# File lib/database_validation/view_helpers.rb, line 4 def text_field_with_maxlength(method, options = {}) options[:maxlength] ||= @object.class.limit_for(method) unless @options[:skip_validations] text_field_without_maxlength(method, options.merge(maxlength: options[:maxlength])) end