Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 26, 2009
  1. @robertwahler

    add nil defaulting commit_button accesskey

    robertwahler authored committed
Commits on Oct 24, 2009
  1. Resolves issue #87 (a bug introduced in d8290cf), in which two labels…

    … were being rendered in boolean inputs.
    * input_spec.rb changed to ensure only one label rendered, exposing the bug
    * boolean_input now inserts the checkbox input into the options hash to pass to the label()
    * label() now knows what to do with the special key in the options hash, inserting the input into the label at the last minute (after i18n, etc)
    This will all probably be undone when/if we move the input outside the label (issue #60) :)
  2. @grimen

    commit_button now automatically get a class attribute that reflects o…

    grimen authored committed
    …n REST actions whenever possible: "create", "update", or "submit". Also removed a tiny typo from the previous commit (commit_button I18n-features).
  3. @grimen

    New I18n-features:

    grimen authored committed
      * Added support for I18n on buttons (commit_button) using same API as legends/labels/hints - with edited/new specs.
      * Squashed a bug that caused named models (symbol name of a class instead of an object: :post vs. @post) to not be able to lookup correct values. Specs subset of above.
      * Some small localization lookup issues justified while on it.
Commits on Oct 23, 2009
  1. @grimen
  2. @grimen
Commits on Oct 21, 2009
  1. @zuf

    Add version field (used in acts_as_versioned) to array of prohibited …

    zuf authored committed
    …fields %w[created_at updated_at created_on updated_on lock_version]
  2. @grimen

    More transparent handling of validation options :if/:unless in option…

    grimen authored committed
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
Something went wrong with that request. Please try again.