Commits on Jul 27, 2010
  1. :as => :time will now exclude the three hidden inputs for year, month…

    justinfrench committed Jul 27, 2010
    … and day if the :ignore_date option is true, just like in Rails' time_select, resolving GH-308.
  2. Fix for "inputs_for_nested_attributes" returning out of the proc on h…

    brianjlandau committed with justinfrench Jul 21, 2010
    …as_many associated nested models.
Commits on Jul 14, 2010
  1. * changed with_custom_field_error_proc to use ensure for restoring de…

    mtarnovan committed Jul 14, 2010
    …fault field_error_proc and to store it in a local variable instead of in a class variable (nested calls were problematic due to the globalness of class variables)
Commits on Jul 13, 2010
Commits on Jul 12, 2010
  1. More intelligent way to html_escape labels and hints (GH-299)

    mjonuschat committed Jul 12, 2010
    This commit won't escape html entities in strings marked as html_safe according to newer rails versions.
    Additionally you can now turn html escaping off by setting
    
    Formtastic::SemanticFormBuilder.escape_html_entities_in_hints_and_labels = false
Commits on Jul 1, 2010
Commits on Jun 30, 2010
  1. Fixes: 293 Hint lookup fails when an attribute and model have the sam…

    dusdanig committed with mjonuschat Jun 30, 2010
    …e name
    
    Added fix in inline_hints_for to see a hash as a blank entry.
    Added spec to test this failure.
Commits on Jun 24, 2010
Commits on Jun 9, 2010
Commits on Jun 7, 2010
  1. Changed radio_input and check_boxes_input to no longer uses field_set…

    justinfrench committed Jun 7, 2010
    …_wrapping_for_method() [which was designed for use with labels that have a mapping to actual inputs]. Instead, I've hard-coded the desired markup into the method. Less DRY, but decoupled.
    
    As a result, we now have control over things like the label(), which no longer contains a `for` attribute for an input that doesn't exist, resolving #253.
Commits on Jun 6, 2010
  1. :input_html can now specify a :size option of nil, resolving #267 wit…

    justinfrench committed Jun 6, 2010
    …h many thanks to indrekj for the patch.
  2. added find_options to the list of options that should be stripped fro…

    justinfrench committed Jun 6, 2010
    …m HTML options, resolving #262
Commits on May 26, 2010
  1. Reverting two i18n patches pulled in from the rails3 branch which are…

    justinfrench committed May 26, 2010
    … not compatible with Rails 2.3.x.
    
    Specs pass without deprecation warnings, and the relevant commits in Rails (13867a3 and 9bd91b0) seem to be in master, but not in the v2.3.8 branch.
    
    Revert "i18n fix: "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.""
    This reverts commit .
    
    Revert "i18n fix II: "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.""
    This reverts commit 49b45f6.
Commits on May 24, 2010
  1. i18n fix: "The {{key}} interpolation syntax in I18n messages is depre…

    HP committed with mjonuschat May 21, 2010
    …cated. Please use %{key} instead."
  2. Translations for nested models.

    tjtuom committed with mjonuschat May 23, 2010
Commits on May 23, 2010
  1. Mark formtastic outputs as html_safe

    mjonuschat committed Apr 15, 2010
    Formtastic::Util.html_safe() checks the available environment and marks a string as html_safe appropriately
Commits on May 3, 2010
  1. An input without an :as option will only route to country_input if th…

    justinfrench committed May 3, 2010
    …e method name is /country$/ not /country/ (which is too greedy). Resolves #260
Commits on Apr 24, 2010
Commits on Apr 22, 2010
  1. belongs_to associations will now render errors attached to the associ…

    justinfrench committed Apr 20, 2010
    …ation and the column (fixes issue #161)
    
    * previously f.input(:section) would only look to errors[:section]
    * so anything in errors[:section_id] would not be displayed
    * some associations like validates_uniqueness_of need to be done on the column name
    * Formtastic will now also look at errors[:section_id] (or whatever the foreign key is named)
    * we squish all the errors together, make sure they're unique and display them all with the input
Commits on Apr 18, 2010
  1. Changed the behaviour of date/time selects when the object attribute …

    justinfrench committed Apr 18, 2010
    …has a nil value.
    
    It used to default to Time.now, but since :selected is deprecated you can no longer overrise the Time.now to nil, so we must default to nil instead. Closes issue #240.
Commits on Apr 12, 2010
  1. Reverting class_name additions for belongs_to associations in f26248f

    justinfrench committed Apr 12, 2010
    …and fe5db0d, as they seemed to optimise for a use case which isn't consistent with Rails' behaviour and most common use case.
    
    See issue 236 for more information, patch welcome that caters to both scenarios adequately.
    
    This reverts commit 6d6f08970f3f5599ee90071885a69d630 and 02a7f797378a2b7415c5ba82bc6007bfe.
    Revert "spec for 'class_name' option on 'belongs_to' associations"
    Revert "fix select input for 'has_many :foos, :class_name => 'FooBar'"
Commits on Apr 11, 2010
Commits on Mar 31, 2010
  1. Revert "added currency select input"

    justinfrench committed Mar 31, 2010
    This reverts commit 4c9dd06.
Commits on Mar 29, 2010
Commits on Mar 13, 2010
  1. Since we're not planning on support :default going forward, it doesn'…

    justinfrench committed Mar 1, 2010
    …t make sense to temporarily push people to migrate over to :default. Instead, the next release will just have a different (better) implementation of :selected.
  2. added a deprecation warning for :selected/:checked/:default -- they'l…

    justinfrench committed Mar 1, 2010
    …l be gone in 1.0 in favor of after_initialize or controller set-ups
Commits on Mar 1, 2010
  1. make eval'ed code's line-numbers line up

    timcharper committed with justinfrench Jan 30, 2010
    It just makes debugging easier this way.