Formtastic 0.9.7 Released (Updated)

Published 3 December 09 by Justin French

Another bunch of really nice improvements and fixes have been added to the latest Formtastic gem:

  • :selected option now works on all select, radio, check_box and date/time/datetime inputs, including multiple pre-selected values for check boxes and multi selects — huge thanks to grimen on this one!
  • Localized (I18n) titles now also works for inputs with the :for option set (nested forms). Closes #135.
  • Added detection of group association method to use when grouping options for selects
  • You can now supply a custom builder on a form-by-form basis with the :builder option, rather than globally through configuration
  • Using rspec_tag_matchers instead of rspec_hpricot_matchers (specs run faster!)
  • ./script/generator form can now be passed a—controller option to specify which controller to add the partial to (eg “admin/posts” instead of the default “posts”)
  • We now always call label_str_method (:humanize by default), previously human_attribute_name was also used in some case

Thanks to everyone for their patches and support.

In more exciting news, the Button DSL branch is getting close, I’ll be pushing it up to Github as a remote branch and seeking feedback very soon, but I felt it was important to tidy up these bugs and keep the plugin moving forward in the meantime.

Update: Originally titled this post 0.9.5, but there was a tiny bug or two, so it’s now 0.9.6 0.9.7!

Options

Search