Skip to content
This repository

Sep 16, 2011

  1. crystalin

    fix nested object i18n scopes order

    add failing spec for issue #613
    crystalin authored

Jun 06, 2011

  1. Justin French

    change i18n specs to use association names, not associations

    authored

Jun 01, 2011

  1. Aditya Sanghi

    Fixes #584 . Retry if value received from i18n is not a string

    asanghi authored

May 27, 2011

  1. Joe Winter

    Fix syntax error in Ruby 1.9.2

    jwinter authored

May 24, 2011

  1. Justin French

    Fixes for i18n under Rails 3.1, all tests pass under Rails 3.1.0.rc1 …

    …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. Justin French

    A bunch of Rails 3.1 compatability stuff for #564

    * 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.
    authored

May 04, 2011

  1. Justin French

    f.semantic_fields_for is now just a wrapper around f.fields_for

    Rails 3 will maintain the `:builder` option down through to the nested `fields_for` helper, so we no longer have to do that ourselves.
    authored

Jan 20, 2011

  1. Justin French

    use with_config to ensure there's no confusion about the i18n config …

    …in a test
    authored

Jan 19, 2011

  1. Justin French

    Renamed all instances of Formtastic::SemanticFormBuilder to Formtasti…

    …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).
    authored
  2. Justin French

    No need for output_buffer.concat(form) any more now that we're only s…

    …upporting the Rails 3 block styles.
    authored
  3. Justin French

    remove rails 3 conditional stuff from specs and spec support

    authored

Oct 14, 2010

  1. Aditya Sanghi

    fallback on helpers.label if formtastic i18n not found

    asanghi authored committed

Sep 27, 2010

  1. Morton Jonuschat

    Always use # encoding: utf-8 declaration

    yabawock authored
  2. Morton Jonuschat

    Whitespace Cleanup

    yabawock authored

Jul 17, 2010

  1. Morton Jonuschat

    Make tests use require 'spec_helper'

    yabawock authored

May 29, 2010

  1. Morton Jonuschat

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

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

    Merge branch 'master' into rails3

    Conflicts:
    	CHANGELOG
    	spec/spec_helper.rb
    yabawock authored

May 26, 2010

  1. Justin French

    Reverting two i18n patches pulled in from the rails3 branch which are…

    … 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.

May 24, 2010

  1. Morton Jonuschat

    Fix tests for nested objects

    yabawock authored
  2. Morton Jonuschat

    Merge branch 'master' into rails3

    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
    yabawock authored
  3. Hans Petter Wilhelmsen

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

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

    Translations for nested models.

    tjtuom authored yabawock committed
  5. Morton Jonuschat

    Update spec suite to use new helper to check for rails3

    yabawock authored
  6. Morton Jonuschat

    Refactored I18n handling in spec testsuite

    * 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
    yabawock authored

Apr 16, 2010

  1. Morton Jonuschat

    Capture returns from formtastic and append them to the output_buffer …

    …if running with rails3
    
    This is an ugly hack that hopefully goes away once rspec 2.0 supports testing viewhelpers
    yabawock authored

Apr 15, 2010

  1. Morton Jonuschat

    Refactored I18n handling in spec testsuite

    * 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
    yabawock authored
  2. Morton Jonuschat

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

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

Apr 12, 2010

  1. Gabriel Sobrinho

    Rails 3 use ActiveSupport::SafeBuffer in views instead of String (see…

    sobrinho authored committed

Nov 30, 2009

  1. Jonas Grimfelt

    I18N_SCOPES => I18n::SCOPES

    grimen authored committed
  2. Jonas Grimfelt

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

    …18n lookup spec.
    grimen authored committed

Nov 22, 2009

  1. Jonas Grimfelt

    Refactored I18n stuff to Formtastic::I18n with specs. Cleaner. Closes #…

    grimen authored committed
Something went wrong with that request. Please try again.