Formtastic 0.9.2 Released

Published 17 November 09 by Justin French

I’ve just pushed the new Formtastic 0.9.2 gem up to Gemcutter this morning on the train. There’s a few API changes as we edge closer and closer 1.0, so I thought I’d do a quick post to document it all.

Changes

  • removed the fallback :save i18n key in commit_button and the erroneous deprecation warning — use the :update and :create keys instead
  • removed the generic method_name class from wrappers (f.input :title will no longer have a title class)

Additions

  • :radio inputs can now force one of the options to be pre-selected with the :selected option, just like :select inputs can
  • :select inputs now have a :group_by option to allow option grouping
  • a new inline error type :first (alongside :list and :sentence) was added, rendering only the first error found

Fixes

  • fixed up some README examples
  • added the Formtastic::SemanticFormHelper.builder config to the example config in the generator
  • added some documentation and beefed up specs for the :selected option on a :select input

Under the hood

  • made the gem post-install message a little more succinct
  • huge refactor and reorganization of the specs under the hood
  • minor refactor of the code base to make it a little easier to follow
  • deprecation errors are no longer silenced in the test suite

Assuming no serious bugs pop up, the next stop is 1.0. I’ve also started a Pledgie campaign, so if Formtastic is saving you or your clients a bit of time and money, please consider donating.

The current campaign is for $555 by 5pm this Friday, in exchange for which I promise to work on Formtastic’s new button DSL for the entire weekend on RailsCamp here in Melbourne.

Click here to lend your support to: formtastic and make a donation at www.pledgie.com !

Options

Search