Releases: heartcombo/simple_form
Releases · heartcombo/simple_form
v4.0.0
Release 4.0.0
v3.5.1
Release 3.5.1
3.1.0.rc2
enhancements
- Add mapping to
uuidcolumns. - Add custom namespaces for custom inputs feature. @vala
- Add
:unless_blankoption to the wrapper API. @IanVaughan - Add support to html markup in the I18n options. @laurocaetano
- Add the
full_errorcomponent. @laurocaetano - Add support to
scopeto be used on associations. @laurocaetano - Execute the association
conditionin the object context. @laurocaetano - Check if the given association responds to
orderbefore calling it. @laurocaetano - Add Bootstrap 3 initializer template.
- For radio or checkbox collection always use
:item_wrapper_tagto wrap the content and addlabelwhen usingboolean_stylewith:nested@kassio and @erichkist input_fielduses the same wrapper as input but only with attribute components. @nashby- Add wrapper mapping per form basis @rcillo and @bernardoamc
- Add
forattribute tolabelwhen collections are rendered as radio or checkbox @erichkist, @ulissesalmeida and @fabioyamate - Add
include_default_input_wrapper_classconfig @luizcosta - Map
datetime,dateandtimeinput types to their respective HTML5 input tags
when the:html5is set totrue@volmer - Add
boolean_label_classconfig. - Add
:htmloption to include additional attributes on custom wrappers @remofritzsche and @ulissesalmeida - Make possible to use the Wrappers API to define attributes for the components.
See #997 for more information. - Put a whitespace before the
inline_labeloptions of boolean input if it is present. - Add support to configure the
label_textproc at the wrapper level. @NOX73 label_textproc now receive three arguments (label, request, and if the label was explicit). @timscott- Add I18n support to
:include_blankand:promptwhen:translateis used as value. @haines - Add support to define custom error messages for the attributes.
- Add support to change the I18n scope to be used in Simple Form. @nielsbuus
bug fix
- Collection input that uses automatic collection translation properly sets checked values.
Closes #971 @nashby - Collection input generates
requiredattribute if it haspromptoption. @nashby - Grouped collection uses the first non-empty object to detect label and value methods.
deprecation
- Methods on custom inputs now accept a required argument with the wrapper options.
See #997 for more information.
Simple Form 3.0.0
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_classglobal 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_methodof collection tags from:lastto:second@nashby - Support
Procobject in:conditionsoption of associations @bradly input_fieldsupportshtml5component @nashby- Make
field_error_procconfigurable @dfens - Support to Rails 4.
- Removed deprecated methods.
- SimpleForm no longer sets the
sizeattribute automatically and thedefault_input_sizesetting
is now deprecated. - Support to aria-required attribute to required fields @ckundo
bug fix
- Make
DateTimeInput#label_targetmethod to work with string values inI18n.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
ingenerate_additional_classes_forconfig option @nashby - Support models with digits in their names @webgago
- Remove deprecation warnings related to
Relation#allfrom Rails 4. - Form builder can be used outside the context of a controller @jasonwebster
- Skip pattern attribute when using
validates_format_ofwith:withoutoption @glebm