Skip to content
Commits on Oct 14, 2009
  1. Reverting "rm'ing some encoding comments"

    committed Oct 15, 2009
    This reverts commit 406dbb4.
  2. :label_method and :value_method can now accept a Proc to call with th…

    committed Oct 14, 2009
    …e collection objects (in addition to a symbol)
  3. Support dynamically required fields

    Jeroen van Dijk committed with Oct 14, 2009
    Given the model below, all the 'foo' fields will be considered to be required while all the 'bar' fields not.
    
    class Model < ActiveRecord::Base
    	validates_presence_of :foo, :if => true
    	validates_presence_of :foo, :if => proc { |record| true }
    	validates_presence_of :foo, :if => :foo_required?
    
    	validates_presence_of :foo, :unless => false
    	validates_presence_of :foo, :unless => proc { |record| false }
    	validates_presence_of :foo, :unless => :bar_required?
    
    	validates_presence_of :bar, :if => false
    	validates_presence_of :bar, :if => proc { |record| false }
    	validates_presence_of :bar, :if => :bar_required?
    
    	validates_presence_of :bar, :unless => true
    	validates_presence_of :bar, :unless => proc { |record| true }
    	validates_presence_of :bar, :unless => :foo_required?
    
    	def foo_required?
    		true
    	end
    
    	def bar_required?
    		false
    	end
    
    end
Commits on Oct 13, 2009
  1. @grimen

    Fixed I18n label bug: "boolean_input" (a.k.a. "check_box") should use…

    grimen committed with Oct 13, 2009
    … the default label method like all the other input types. (Issue #73)
Commits on Oct 12, 2009
  1. @grimen
Commits on Oct 7, 2009
  1. Only use i18n date order if one exists.

    Tomas Jogin committed with Oct 7, 2009
Commits on Oct 3, 2009
  1. @l15n

    Use interpolation for I18n button text

    l15n committed with Sep 28, 2009
    Allows languages with different word orderings to use natural
    translations for commit button text.
  2. Valid label for="..." on radio buttons/check boxes

    Sandro Turriate and Tim Pope committed with Sep 28, 2009
    This generates the label's for attributes in the same way the input's id
    is generated inside Rails.
  3. @grimen

    Aliasing :semantic_form_remote_for => :semantic_remote_form_for. No n…

    grimen committed with Sep 30, 2009
    …eed to declare same method two times - that is identical.
  4. @grimen

    Fixed issue where field_error_proc gets overridden globally - not any…

    grimen committed with Sep 30, 2009
    …more, only Formtastic. (But if wanted to set it globally, access Formtastic's field_error_proc with Formtastic::SemanticFormHelper::FIELD_ERROR_PROC and set it "the traditional way").
Commits on Sep 27, 2009
  1. should resolve #51, where the errors class was being applied when the…

    committed Sep 27, 2009
    …re was an empty array of errors
  2. @grimen

    Made method_required? respect the :if conditional on validates_presen…

    grimen committed with Sep 3, 2009
    …ce_of, and squashing a bug related to this causing all fields become required if just one field is required (issue #29). Also fixed an old incorrect string interpolation in the spec - RSpec matchers was smart enough to handle that it seems.
    
    Signed-off-by: Justin French <justin@indent.com.au>
  3. @grimen

    Fixing some issues with the specs to get them to run on Ruby 1.9.x. S…

    grimen committed with Sep 1, 2009
    …pecs now runs, but most of them fails. =/
    
    Signed-off-by: Justin French <justin@indent.com.au>
  4. @grimen

    Made :input_blank default value optional through initializer config, …

    grimen committed with Jul 18, 2009
    …as default blank option is not necessarily a best practice in all cases. + Added :title as alias for :name, for fieldset legends.
    
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Sep 9, 2009
  1. @josevalim
  2. @grimen @josevalim

    Added I18n-support for fieldset legends/titles (i.e. :name/:title for…

    grimen committed with josevalim Jul 18, 2009
    … inputs-builder).
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Sep 6, 2009
  1. missed one of the hardcoded SemanticFormBuilder instances that should…

    committed Sep 7, 2009
    … have been SemanticFormHelper.builder
  2. SemanticFormBuilder.semantic_fields_for now uses the builder specifie…

    committed Sep 6, 2009
    …d in SemanticFormHelper.builder (configurable), rather than assuming that the builder is always SemanticFormBuilder, correcting issue #41
Commits on Aug 29, 2009
Commits on Aug 25, 2009
  1. @josevalim
  2. @josevalim
  3. @josevalim
Commits on Aug 22, 2009
  1. @grimen
Commits on Aug 6, 2009
  1. @josevalim

    Ensure that an array is given as boolean collection so order is prese…

    josevalim committed Aug 6, 2009
    …rved, resolving issue #30.
  2. @josevalim
Commits on Aug 1, 2009
  1. @cjheath

    Use :foreign_key name for belongs_to association if specified

    cjheath committed with Jun 23, 2009
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Jul 20, 2009
  1. @josevalim

    Columns named password defaults to password inputs even if no object …

    josevalim committed Jul 20, 2009
    …was given, resolving issue #20.
  2. @josevalim
  3. @josevalim
  4. @grimen @josevalim

    Applied some changes to the label/hint-localization based on I18n-dis…

    grimen committed with josevalim Jul 16, 2009
    …cussion with José.
    
    (cherry picked from commit e4e9b7fe056c075039aaccff5d59a9b740cbedd7)
Something went wrong with that request. Please try again.