* new check boxes input (:as => :check_boxes) as an alternative to the default multi-select for has_many and habtm associations * new country input (:as => :country), a wrapper around any plugin that provides a country_select helper with the ame API as the "official" Rails plugin * a bug fix where hidden inputs were being added as child elements of an ordered list <ol>, which is obviously poorly formed markup
… The hidden fields are required to use Rails internal logic to mark the checkbox as checked or not which is better then reproducing the logic on our own. By default hidden fields return blank, which is automatically ignored by association_ids.
…mns with names matching /country/). Rails doesn't come with a country_select helper by default any more, so you'll need to install the "official" plugin, or any other country_select plugin you wish that behaves in the same way. A default set of "priority countries" is always included, and can be configured (see README).
Previously, we were rendering any hidden inputs inside the <ol>, which recently caused my specs to fail after a gem update (no idea which gem, it all passes for José and others). It's probably poorly formed or invalid HTML anyway, so they've been moved outside the <ol> and surrounding <fieldset> for now, pending any better ideas. In the meantime, my specs pass.
…gument. Signed-off-by: Justin French <firstname.lastname@example.org>
<% semantic_form_for(@user) do |f| %> <%= f.input :timezone, :as => :time_zone %> ... <% end %> Merges the following commits by Ramon Soares and José Valim: http://github.com/ramon/formtastic/commit/b9656eeaa1f6b361a2d31a0458603174a825c71a http://github.com/josevalim/formtastic/commit/0e4b90a6145373c2d43265144ba3787e78730829 http://github.com/josevalim/formtastic/commit/1b2aff3598706c7dd79f31b814f7fe3293e849c6 Signed-off-by: Justin French <email@example.com>
…ork with searchlogic