Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

cainlevy's latest activity

Friday, February 06 2009
1892 nested attributes should not have meaningful hash keys was updated in Ruby on Rails
  • cainlevy
    cainlevy commented at 8:34 PM

    This new patch supports arrays as well as hashes. I modified the documentation to prefer the array approach, so people aren't distracted by the hash keys. :-) A...

  • cainlevy
    cainlevy commented at 9:06 AM

    Eloy, you snuck in while I was typing. :-)

    Does the conference session use case work for a "real world" argument?

  • cainlevy
    cainlevy commented at 9:04 AM

    Has_many associations already naturally offer replacement. You simply submit one record hash with a _delete key, and another without an id key. That removes the...

  • cainlevy
    cainlevy commented at 5:27 AM

    I forgot to mention: this patch also rolls in the patch from ticket #1870.

  • cainlevy
    • Tag changed from 2.3, attributes, block, nested to 2.3, attributes, block, nested, patch
    by cainlevy at 5:26 AM

    I found time sooner than I expected. :-)

    This patch moves ids inside the attributes hash. New records are determined by the absence of hashes. The _delete key s...

1 earlier change…
  • cainlevy
    cainlevy created the ticket at 2:21 AM

    The current nested_attributes implementation uses meaningful hash keys (approach 3 from http://gist.github.com/10793). This causes problems when extending the i...

1870 accepts_nested_attributes_for should not have a :reject_if option was updated in Ruby on Rails
  • cainlevy
    cainlevy commented at 8:29 AM

    Why did you clear all of the tags?

    First of all, we shouldn't rely on documentation if there's an option to simply design the system better. Whether this improv...

  • cainlevy
    cainlevy commented at 5:27 AM

    This patch is rolled into the patch for ticket #1892.

  • cainlevy
    • Tag changed from attributes, nested to 2.3, attributes, nested, patch
    by cainlevy at 2:09 AM

    this patch drops the :reject_if option, and fixes a lingering issue from ticket #1861 whereby _delete would still not cause a new record to be ignored if allow_...

  • cainlevy
    • Title changed from nested forms should not have a :reject_if option to accepts_nested_attributes_for should not have a :reject_if option
    by cainlevy at 2:00 AM