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.

Brandon Dimcheff's latest activity

Thursday, February 10 2011
6147 find_or_create via has_many fails for hash parameters was updated in Ruby on Rails
  • Brandon Dimcheff
    Brandon Dimcheff commented at 4:38 PM

    @pat, yes that was my experience as well. I stuck a git checkout of rails in vendor/rails and git bisected until I found the commit that caused the problem, whi...

Wednesday, December 15 2010
6147 find_or_create via has_many fails for hash parameters was updated in Ruby on Rails
  • Brandon Dimcheff
    Brandon Dimcheff commented at 11:07 PM

    ah, ok yeah that makes sense. Since I never got that test passing, I didn't run into that problem. I just used the model objects that were already being used in...

Sunday, December 12 2010
6147 find_or_create via has_many fails for hash parameters was updated in Ruby on Rails
  • Brandon Dimcheff
    Brandon Dimcheff commented at 3:36 AM

    I just edited the ticket to fix an error - find_or_create works properly on a model class, as far as I can tell. It does not work properly when called on an ass...

  • Brandon Dimcheff
    Brandon Dimcheff commented at 3:34 AM

    @ryan - This as worked for me in rails 2 for a while. In the docs it shows that you can do this with an ActiveRecord class directly:

    Tag.find_or_create_by_nam...
Saturday, December 11 2010
6147 find_or_create via has_many fails for hash parameters was updated in Ruby on Rails
  • Brandon Dimcheff
    Brandon Dimcheff commented at 6:57 AM

    I guess lighthouse won't let me upload a patch, so here it is

  • Brandon Dimcheff
    Brandon Dimcheff created the ticket at 6:55 AM

    I tried to add this to 1108, since it is related, but it failed without a flash message.

    find_or_create is still messed up in 2-3-stable. Check out this failing...