2013-11-03 06:19:52 -05:00
## master
2013-11-13 10:18:54 -05:00
### enhancements
2014-04-03 11:08:29 -04:00
* Add the `full_error` component. [@laurocaetano ](https://github.com/laurocaetano )
2014-04-02 13:43:34 -04:00
* Add support to `scope` to be used on associations. [@laurocaetano ](https://github.com/laurocaetano )
2014-04-01 10:57:42 -04:00
* Execute the association `condition` in the object context. [@laurocaetano ](https://github.com/laurocaetano )
2014-03-31 14:44:02 -04:00
* Check if the given association responds to `order` before calling it. [@laurocaetano ](https://github.com/laurocaetano )
2014-03-31 14:06:26 -04:00
* Add Bootstrap 3 initializer template.
2013-12-09 08:53:58 -05:00
* For radio or checkbox collection always use `:item_wrapper_tag` to wrap the content and add `label` when using `boolean_style` with `:nested` [@kassio ](https://github.com/kassio ) and [@erichkist ](https://github.com/erichkist )
2013-11-24 10:11:05 -05:00
* `input_field` uses the same wrapper as input but only with attribute components. [@nashby ](https://github.com/nashby )
2013-11-13 10:18:54 -05:00
* Add wrapper mapping per form basis [@rcillo ](https://github.com/rcillo ) and [@bernardoamc ](https://github.com/bernardoamc )
2013-11-18 15:38:48 -05:00
* Add `for` attribute to `label` when collections are rendered as radio or checkbox [@erichkist ](https://github.com/erichkist ), [@ulissesalmeida ](https://github.com/ulissesalmeida ) and [@fabioyamate ](https://github.com/fabioyamate )
2013-11-12 17:18:52 -05:00
* Add `include_default_input_wrapper_class` config [@luizcosta ](https://github.com/luizcosta )
2013-11-13 15:25:41 -05:00
* Map `datetime` , `date` and `time` input types to their respective HTML5 input tags
2013-11-26 19:58:46 -05:00
when the `:html5` is set to `true` [@volmer ](https://github.com/volmer )
2014-03-12 16:09:02 -04:00
* Add `boolean_label_class` config.
2014-04-02 18:58:17 -04:00
* Add `:html` option to include additional attributes on custom wrappers [@remofritzsche ](https://github.com/remofritzsche ) and [@ulissesalmeida ](https://github.com/ulissesalmeida )
2014-03-14 17:50:57 -04:00
* Make possible to use the Wrappers API to define attributes for the components.
See https://github.com/plataformatec/simple_form/pull/997 for more information.
2014-03-31 13:01:48 -04:00
* Put a whitespace before the `inline_label` options of boolean input if it is present.
2014-04-02 18:58:17 -04:00
* Add support to configure the `label_text` proc at the wrapper level. [@NOX73 ](https://github.com/NOX73 )
2014-04-02 19:10:35 -04:00
* `label_text` proc now receive three arguments (label, request, and if the label was explicit). [@timscott ](https://github.com/timscott )
2014-04-03 14:27:45 -04:00
* Add I18n support to `:include_blank` and `:prompt` when `:translate` is used as value. [@haines ](https://github.com/plataformatec/simple_form/pull/616 )
2014-04-03 17:32:02 -04:00
* Add support to define custom error messages for the attributes.
2014-04-04 10:59:38 -04:00
* Add support to change the I18n scope to be used in Simple Form. [@nielsbuus ](https://github.com/nielsbuus )
2013-11-13 10:18:54 -05:00
2013-11-03 06:19:52 -05:00
### bug fix
2013-12-31 14:31:17 -05:00
* Collection input that uses automatic collection translation properly sets checked values.
Closes [#971 ](https://github.com/plataformatec/simple_form/issues/971 ) [@nashby ](https://github.com/nashby )
2013-11-03 06:19:52 -05:00
* Collection input generates `required` attribute if it has `prompt` option. [@nashby ](https://github.com/nashby )
2014-04-02 14:38:40 -04:00
* Grouped collection uses the first non-empty object to detect label and value methods.
2013-11-03 06:19:52 -05:00
2014-03-14 10:52:20 -04:00
## deprecation
2014-03-21 13:31:08 -04:00
* Methods on custom inputs now accept a required argument with the wrapper options.
2014-03-14 10:52:20 -04:00
See https://github.com/plataformatec/simple_form/pull/997 for more information.
2013-11-29 10:45:04 -05:00
## 3.0.1
### bug fix
* Fix XSS vulnerability on label, hint and error components.
2013-09-21 11:05:58 -04:00
## 3.0.0
2013-05-16 14:39:14 -04:00
### enhancements
2013-08-16 07:11:31 -04:00
* New `input_class` global config option to set a class to be generated in all inputs.
2013-06-18 15:55:27 -04:00
* Collection tags accept html attributes as the last element of collection [@nashby ](https://github.com/nashby )
* Change default `:value_method` of collection tags from `:last` to `:second` [@nashby ](https://github.com/nashby )
2013-05-27 16:50:56 -04:00
* Support `Proc` object in `:conditions` option of associations [@bradly ](https://github.com/bradly )
2013-05-16 14:39:14 -04:00
* `input_field` supports `html5` component [@nashby ](https://github.com/nashby )
2013-09-21 11:05:58 -04:00
* Make `field_error_proc` configurable [@dfens ](https://github.com/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 ](https://github.com/ckundo )
2013-05-16 14:39:14 -04:00
2013-06-20 16:10:05 -04:00
### bug fix
2013-08-16 07:11:31 -04:00
* Make `DateTimeInput#label_target` method to work with string values in `I18n.t('date.order')` (default
2013-07-17 15:13:31 -04:00
behaviour in Rails 4)
Closes [#846 ](https://github.com/plataformatec/simple_form/issues/846 ) [@mjankowski ](https://github.com/mjankowski )
2013-05-28 16:12:18 -04:00
* Add "checkbox" class to the label of boolean input when there is no `:label`
in `generate_additional_classes_for` config option [@nashby ](https://github.com/nashby )
2013-06-20 16:10:05 -04:00
* Support models with digits in their names [@webgago ](https://github.com/webgago )
2013-05-09 20:27:43 -04:00
* Remove deprecation warnings related to `Relation#all` from Rails 4.
2013-05-02 14:54:07 -04:00
* Form builder can be used outside the context of a controller [@jasonwebster ](https://github.com/jasonwebster )
2013-02-28 02:03:50 -05:00
* Skip pattern attribute when using `validates_format_of` with `:without` option [@glebm ](https://github.com/glebm )
2013-02-25 19:51:49 -05:00
Please check [v2.1 ](https://github.com/plataformatec/simple_form/blob/v2.1/CHANGELOG.md ) for previous changes.