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_validations and use_required_attribute configuration defaults from true to false for a better out-of-the-box experience and upgrade path
  • Fixed that the novalidate attribute was being applied to the <form> tag when it shouldn’t have been (and vice-versa)
  • Fixed undefined method `last' for #<Classname> with a :collection containing an array of arrays

2.0.0.rc4

  • Fixed that TimeInput was 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 => :create validations
  • Fixed that collections of strings in CheckBoxesInput were not being correctly checked be checked if they match the model
  • Fixed that the required attribute was added to the choices in a :radio or :check_boxes input, instead of just the parent input wrapper
  • Fixed semantic_fields_for when used with a hash-like model
  • Fixed that models without defined validations (even if validators_on exists) should not be considered required
  • Fixed min/@max@ attributes when the validation uses a Proc
  • Fixed that inputs should not be considered required if :allow_blank => true is set on validates_inclusion_of
  • Fixed that inputs should not be considered required if either :allow_blank => true, :minimum is > 0, or :within’s least value is > 0 is set on validates_length_of
  • Fixed a typo in the config template
  • Fixed semantic_fields_for to work with Rails 3 and 3.1’s method sigs, many thanks to the simple_form guys for figuring this out
  • Changed HTML5 step attribute to default to any instead of 1
  • Added CarrierWave support for to file input detection
  • Added a configuration perform_browser_validations to 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 .label class was incorrectly applied to <label> tags inside a .choice on 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 blank options at the top in some cases
  • Added documentation for Timeish inputs (date, datetime, time)

With Rails 3.1 freshly released, now is a great time to help ensure this is a solid release.

Options

What is this?

portrait of Justin

This is the online home of Justin French, a designer & web application developer located in Melbourne, Australia. I like finding ways to make things work better. I like clarifying and simplifying. I like to understand how you understand things.

» read more

Subscribe to my feed

Follow me on Twitter

@justinfrench

More Notebook Articles

Show more notebook articles

Search