Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 18, 2009
  1. @elandesign
Commits on Oct 14, 2009
  1. Reverting "rm'ing some encoding comments"

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

    …e collection objects (in addition to a symbol)
  3. Support dynamically required fields

    Jeroen van Dijk authored committed
    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?
    	def bar_required?
Commits on Oct 13, 2009
  1. @grimen

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

    grimen authored committed
    … 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 authored committed
Commits on Oct 3, 2009
  1. @l15n

    Use interpolation for I18n button text

    l15n authored committed
    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 authored committed
    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 authored committed
    …eed to declare same method two times - that is identical.
  4. @grimen

    Fixed issue where field_error_proc gets overridden globally - not any…

    grimen authored committed
    …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…

    …re was an empty array of errors
  2. @grimen

    Made method_required? respect the :if conditional on validates_presen…

    grimen authored committed
    …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 <>
  3. @grimen

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

    grimen authored committed
    …pecs now runs, but most of them fails. =/
    Signed-off-by: Justin French <>
  4. @grimen

    Made :input_blank default value optional through initializer config, …

    grimen authored committed
    …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 <>
Commits on Sep 9, 2009
  1. @josevalim
  2. @grimen @josevalim

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

    grimen authored josevalim committed
    … inputs-builder).
    Signed-off-by: José Valim <>
Commits on Sep 6, 2009
  1. missed one of the hardcoded SemanticFormBuilder instances that should…

    … have been SemanticFormHelper.builder
  2. SemanticFormBuilder.semantic_fields_for now uses the builder specifie…

    …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
  2. @josevalim
Commits on Aug 1, 2009
  1. @cjheath

    Use :foreign_key name for belongs_to association if specified

    cjheath authored committed
    Signed-off-by: Justin French <>
Commits on Jul 20, 2009
  1. @josevalim

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

    josevalim authored
    …was given, resolving issue #20.
  2. @josevalim
  3. @josevalim
Something went wrong with that request. Please try again.