Skip to content

Simple Form 3.0.0

Compare
Choose a tag to compare
@rafaelfranca rafaelfranca released this 21 Sep 15:10
· 850 commits to main since this release

This version add support to Rails 4 and drops entirely support to Rails 3 and Ruby 1.8. If you want support to these version use Simple Form 2.1

enhancements

  • New input_class global config option to set a class to be generated in all inputs.
  • Collection tags accept html attributes as the last element of collection @nashby
  • Change default :value_method of collection tags from :last to :second @nashby
  • Support Proc object in :conditions option of associations @bradly
  • input_field supports html5 component @nashby
  • Make field_error_proc configurable @dfens
  • Support to Rails 4.
  • Removed deprecated methods.
  • SimpleForm no longer sets the size attribute automatically and the default_input_size setting
    is now deprecated.
  • Support to aria-required attribute to required fields @ckundo

bug fix

  • Make DateTimeInput#label_target method to work with string values in I18n.t('date.order') (default
    behaviour in Rails 4)
    Closes #846 @mjankowski
  • Add "checkbox" class to the label of boolean input when there is no :label
    in generate_additional_classes_for config option @nashby
  • Support models with digits in their names @webgago
  • Remove deprecation warnings related to Relation#all from Rails 4.
  • Form builder can be used outside the context of a controller @jasonwebster
  • Skip pattern attribute when using validates_format_of with :without option @glebm