Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Dec 31, 2008
  1. Changed render_associated_form to work with singular associations jus…

    authored
    …t as happily as with has_many associations.
    
    * Added fields_for_associated_object method to render a singular associated object (for use with has_one associations). Its main difference is that it doesn't append "[new][0]" to the name.
    * Changed render_associated_form to use fields_for_associated_object if +associated+ is singular.
      * Please note that this changes the API! The old behavior was to always assume the form is for a has_many collection even if +associated+ was singular.
    * Renamed fields_for_associated => fields_for_associated_collection to make room for new fields_for_associated_object method.
    
    * Added a new :javascript option to add_associated_link so that you can do things like automatically focus the input that is created when you click the link. By default, that's exactly what it will do now.
    
    * Improved and expanded the documentation for the form helpers a bit.
    * Added a separate mini-tutorial to the Readme describing how to use attribute_fu with a has_one association.
  2. Changed it so that the :attributes option will work for singular asso…

    authored
    …ciations (has_one and belongs_to) just as happily as with has_many associations.
    
    Made some minor changes to the has_many code to make it coexist more happily with the new has_one/belongs_to code and to be consistent in naming:
    * Moved the has_many stuff from AttributeFu::Associations into a submodule, AttributeFu::Associations::HasMany
    * Renamed:
      * managed_association_attributes => attribute_fu_has_many_options
      * has_many_attributes            => update_has_many_from_attributes
      * save_managed_associations      => save_attribute_fu_has_many_associations
    * Removed the method_missing as it no longer appears to be necessary now that we're explicitly defining a "#{association_name.to_s}_attributes=" method for each attribute_fu association.
    * Moved the after_update macro call to occur when the has_many macro is called
Commits on Dec 29, 2008
  1. Moved the has_many stuff from AttributeFu::Associations into a submod…

    authored
    …ule, AttributeFu::Associations::HasMany
  2. Fixed test to reflect that fields_for("photo[comment_attributes][new]…

    authored
    …[0]") now produces "..._new_0"
    
    in Rails 2.2.2 rather than "...__new__0".
Commits on Nov 25, 2008
  1. @jamesgolick

    Merge branch 'master' into jquery

    jamesgolick authored
    Conflicts:
    
    	lib/attribute_fu/associated_form_helper.rb
    	test/associated_form_helper_test.rb
Commits on Nov 13, 2008
  1. @jamesgolick
  2. @jamesgolick

    fix readme (finally)

    jamesgolick authored
Commits on Oct 10, 2008
  1. @jamesgolick
Commits on Sep 28, 2008
  1. @jamesgolick
Commits on Sep 27, 2008
  1. @bkeepers
  2. @bkeepers
  3. @bkeepers

    Merge branch 'edge'

    bkeepers authored
  4. @bkeepers

    Fix for edge rails by defining a *_attributes= method for each associ…

    bkeepers authored
    …ation declared with :attributes => true
  5. @bkeepers

    Make testing easier by removing rails app from test directory and jus…

    bkeepers authored
    …t load ActiveRecord/AcitionView manually
Commits on Sep 1, 2008
  1. @jamesgolick

    bump gemspec version

    jamesgolick authored
Commits on Aug 27, 2008
  1. @cjse
Commits on Aug 4, 2008
  1. @jamesgolick

    add gemspec

    jamesgolick authored
Commits on Jul 22, 2008
  1. @jamesgolick
  2. @danielmorrison @jamesgolick

    Fixed quoting bug in edge rails, made apparent when ActiveSupport.esc…

    danielmorrison authored jamesgolick committed
    …ape_html_entities_in_json = false
  3. @jamesgolick
Commits on Jun 15, 2008
  1. @danielmorrison

    Avoid loading associations unnecessarily. When there's nothing to upd…

    danielmorrison authored
    …ate, don't load associations on save.
Commits on Jun 4, 2008
  1. @nixme
Commits on Jun 2, 2008
  1. @jamesgolick
Commits on May 20, 2008
  1. @danielmorrison

    Fixed quoting bug in edge rails, made apparent when ActiveSupport.esc…

    danielmorrison authored
    …ape_html_entities_in_json = false
Commits on May 17, 2008
  1. Merge branch 'master' into jquery

    James Golick authored
Commits on Apr 22, 2008
  1. a fix for edge rails + active_record_session_storage

    Andrzej Krzywda authored
Commits on Apr 21, 2008
  1. @schof
Commits on Apr 3, 2008
  1. @jamesgolick
  2. @jamesgolick
  3. @jamesgolick
Commits on Feb 21, 2008
  1. add an option to provide an alternate javascript expression with whic…

    james authored
    …h to select the container to insert new forms in to with add_associated_link
    
    git-svn-id: http://svn.jamesgolick.com/attribute_fu/trunk@71 80b79608-713f-0410-8737-d8c0d0c1b50c
Commits on Feb 16, 2008
  1. add patch to support namespaced models [Tim Chater]

    james authored
    git-svn-id: http://svn.jamesgolick.com/attribute_fu/trunk@70 80b79608-713f-0410-8737-d8c0d0c1b50c
  2. update the has_many_with_association_option to reflect discard_if acc…

    james authored
    …epting a symbol
    
    git-svn-id: http://svn.jamesgolick.com/attribute_fu/trunk@69 80b79608-713f-0410-8737-d8c0d0c1b50c
  3. update README to reflect discard_if change

    james authored
    git-svn-id: http://svn.jamesgolick.com/attribute_fu/trunk@68 80b79608-713f-0410-8737-d8c0d0c1b50c
  4. add discard_if => :symbol

    james authored
    git-svn-id: http://svn.jamesgolick.com/attribute_fu/trunk@67 80b79608-713f-0410-8737-d8c0d0c1b50c
Something went wrong with that request. Please try again.