…ion :if conditional on validates_presence_of when it exists and ValidationReflection plugin is installed.
…was given, resolving issue #20.
…cussion with José. (cherry picked from commit e4e9b7f)
* it now indicates that you can supply an Array of Strings for the the collection (resolves issue #21) * it now clearly indicates that the collection can be an Array or a Hash
…hes) Signed-off-by: Justin French <email@example.com>
…s options, resolving issue #16.
…sociations, resolving issue #17
* select inputs have a blank option at the start of them by default now * a fix for Ruby 1.9 compatability * add lock_version to the list of columns that are skipped when automatically rendering an input for all fields in the table * commit_button now works with an options hash as the first arg, or with a string followed by an options hash
… for all columns in the table (like we skip created_at, etc)
…ument, resolving issue #15
…able with :include_blank => false option (resolves issue #12)
…tead of to_s for Ruby 1.9
* 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.