Announcing Formtastic 2.0.0.rc5
Published 1 September 11 by Justin French
It’s been a long but enjoyable path from the first release candidate, but I think we’re finally here! Pending any major new issues found, this will be the final release candidate and Formtastic 2 will ship in the next week.
Here’s an extract from the CHANGELOG since 2.0.0.rc1:
2.0.0.rc5
- Changed
perform_browser_validationsanduse_required_attributeconfiguration defaults from true to false for a better out-of-the-box experience and upgrade path - Fixed that the
novalidateattribute was being applied to the<form>tag when it shouldn’t have been (and vice-versa) - Fixed
undefined method `last' for #<Classname>with a:collectioncontaining an array of arrays
2.0.0.rc4
- Fixed that
TimeInputwas not rendering hidden y/m/d inputs by default. - Fixed test suite under Rails 3.1.0.rc5
- Fixed false and blank fragment labels on date/time inputs producing unsafe HTML.
- Fixed that inputs were ‘required’ without considering
:on => :createvalidations - Fixed that collections of strings in
CheckBoxesInputwere not being correctly checked be checked if they match the model - Fixed that the required attribute was added to the choices in a
:radioor:check_boxesinput, instead of just the parent input wrapper - Fixed
semantic_fields_forwhen used with a hash-like model - Fixed that models without defined validations (even if
validators_onexists) should not be considered required - Fixed
min/@max@ attributes when the validation uses aProc - Fixed that inputs should not be considered required if
:allow_blank => trueis set onvalidates_inclusion_of - Fixed that inputs should not be considered required if either
:allow_blank => true,:minimumis> 0, or:within’s least value is> 0is set onvalidates_length_of - Fixed a typo in the config template
- Fixed
semantic_fields_forto work with Rails 3 and 3.1’s method sigs, many thanks to the simple_form guys for figuring this out - Changed HTML5
stepattribute to default toanyinstead of1 - Added CarrierWave support for to file input detection
- Added a configuration
perform_browser_validationsto opt out of HTML5 browser validations. - Added more support for mongo documents, including MongoMapper-specific reflection capability
- Added IE specific stylesheets & moved those styles out of main stylesheet, include them yourself if needed
- Added a new configuration to opt out of HTML5 required attribute
2.0.0.rc3
- Fixed that
.labelclass was incorrectly applied to<label>tags inside a.choiceon radio and checkbox inputs
2.0.0.rc2
- Fixed install instructions in README to reflect 2.0.0.rc1
- Fixed that the checkbox was mistakenly placed after the label text in
BooleanInput, not before it as per 1.x - Fixed that select inputs had two
blankoptions at the top in some cases - Added documentation for
Timeishinputs (date, datetime, time)
With Rails 3.1 freshly released, now is a great time to help ensure this is a solid release.
Before you go…
Here’s some links to my most popular posts: