Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 16, 2011
  1. @crystalin

    fix nested object i18n scopes order

    crystalin authored
    add failing spec for issue #613
Commits on Jun 6, 2011
Commits on Jun 1, 2011
  1. @asanghi
Commits on May 27, 2011
  1. @jwinter

    Fix syntax error in Ruby 1.9.2

    jwinter authored
Commits on May 24, 2011
  1. Fixes for i18n under Rails 3.1, all tests pass under Rails 3.1.0.rc1 …

    authored
    …and 3.0.7.
    
    * Model_name in Rails 3 can be `author` or `post[author]`. In Rails 3.1 always `author`. Rails 3.1 introduces `builder.parent_builder`, so we use `builder.parent_builder.object` name for the parent (`post`) bit if available, and `f.semantic_fields_for` will pass `:parent_builder` to `f.form_for` as an option to provide similar functionality in Rails 3.0.
    
    * The nested translation tests in for the above code really didn't cover the common use cases, so I re-wrote a lot of them, added extras, etc.
    
    * Rails 3.1 also doesn't seem to instantiate the nested builder as a Formtastic::FormBuilder if the parent form is using `:post` instead of `@post`, so converted the specs to work with real objects.
    
    * The tests for falling back to Rails-style translations didn't make sense to me so I re-wrote them and adding coverage for nesting.
    
    Fixes #564
  2. A bunch of Rails 3.1 compatability stuff for #564

    authored
    * Rails 3.1 nested inputs won't work unless the nested attributes collection returns a non-empty collection
    
    * stub Author#persisted? to get another test passing
    
    * stub controller, default_url_options, _routes, _routes.url_helpers, _routes.url_helpers.has_for_..._path, etc
    
    * f.fields_for(:some_association) in Rails 3.1 checks for the some_association= method on the parent model, so we need to stub it
    
    Disabled some failing i18n specs for now.
Commits on May 4, 2011
  1. f.semantic_fields_for is now just a wrapper around f.fields_for

    authored
    Rails 3 will maintain the `:builder` option down through to the nested `fields_for` helper, so we no longer have to do that ourselves.
Commits on Jan 20, 2011
Commits on Jan 19, 2011
  1. Renamed all instances of Formtastic::SemanticFormBuilder to Formtasti…

    authored
    …c::Builder, Formtastic::SemanticFormHelper to Formtastic::Helpers::FormHelper and ::Formtastic to just Formtastic.
    
    Still need to work out upgrade path/warnings/etc, but the old class names still work for now (for those awesome enough to be on the edge).
  2. No need for output_buffer.concat(form) any more now that we're only s…

    authored
    …upporting the Rails 3 block styles.
Commits on Oct 14, 2010
  1. @asanghi

    fallback on helpers.label if formtastic i18n not found

    asanghi authored committed
Commits on Sep 27, 2010
  1. @yabawock
  2. @yabawock

    Whitespace Cleanup

    yabawock authored
Commits on Jul 17, 2010
  1. @yabawock
Commits on May 29, 2010
  1. @yabawock

    Revert "Reverting two i18n patches pulled in from the rails3 branch w…

    yabawock authored
    …hich are not compatible with Rails 2.3.x."
    
    This reverts commit 1469b53.
  2. @yabawock

    Merge branch 'master' into rails3

    yabawock authored
    Conflicts:
    	CHANGELOG
    	spec/spec_helper.rb
Commits on May 26, 2010
  1. Reverting two i18n patches pulled in from the rails3 branch which are…

    authored
    … 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. @yabawock

    Fix tests for nested objects

    yabawock authored
  2. @yabawock

    Merge branch 'master' into rails3

    yabawock authored
    Conflicts:
    	lib/formtastic.rb
    	lib/formtastic/util.rb
    	spec/commit_button_spec.rb
    	spec/input_spec.rb
    	spec/inputs/country_input_spec.rb
    	spec/spec_helper.rb
  3. @HP @yabawock

    i18n fix II: "The {{key}} interpolation syntax in I18n messages is de…

    HP authored yabawock committed
    …precated. Please use %{key} instead."
  4. @tjtuom @yabawock

    Translations for nested models.

    tjtuom authored yabawock committed
  5. @yabawock
  6. @yabawock

    Refactored I18n handling in spec testsuite

    yabawock authored
    * Make use of I18n.backend.reload! to clear/reinitialize translation strings
    * Start with a minimal set of translation strings and add expected ones in the test
    * Reinitialize the translation backend after each test to start with a known state
Commits on Apr 16, 2010
  1. @yabawock

    Capture returns from formtastic and append them to the output_buffer …

    yabawock authored
    …if running with rails3
    
    This is an ugly hack that hopefully goes away once rspec 2.0 supports testing viewhelpers
Commits on Apr 15, 2010
  1. @yabawock

    Refactored I18n handling in spec testsuite

    yabawock authored
    * Make use of I18n.backend.reload! to clear/reinitialize translation strings
    * Start with a minimal set of translation strings and add expected ones in the test
    * Reinitialize the translation backend after each test to start with a known state
  2. @yabawock

    Revert all the changes introduced in commits 8d17ca4..8d8c50

    yabawock authored
    Restarting the work on rails3 compatibility with a clean branch
    makes live easier - in here were a lot of changes from different
    sources touching different problems without resulting in a complete
    solution.
Commits on Apr 12, 2010
  1. @sobrinho
Commits on Nov 30, 2009
  1. @grimen

    I18N_SCOPES => I18n::SCOPES

    grimen authored committed
  2. @grimen

    Removed redundant stuff with tiny refactoring, and adding a general I…

    grimen authored committed
    …18n lookup spec.
Commits on Nov 22, 2009
  1. @grimen
Something went wrong with that request. Please try again.