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.

There was a problem

You must be a member of this account.

James Le Cuirot's latest activity

Thursday, June 17 2010
4642 Unsaved changes to nested attribute collections are lost when using collection was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 4:05 PM

    Don't worry, I have fixed the above failure in a way that satisfies both issues. See #4830.

Saturday, June 12 2010
4830 Updates to relationship resources are lost was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 12:03 PM

    The updates were not lost entirely as they were still saved to the database. They just weren't reflected in the model immediately afterwards. By keeping my prev...

  • James Le Cuirot
    James Le Cuirot commented at 10:35 AM

    Figured it out and have a fix. I'll post it with an AR testcase shortly.

Friday, June 11 2010
4830 Updates to relationship resources are lost was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 4:15 PM

    Hmm sorry about that. I was trying to fix another bug. I'll look into it as soon as I can.

Wednesday, June 09 2010
4766 nested_attributes fails to update/destroy when association is loaded between ... was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 1:54 PM

    This has now been fixed. See the other ticket.

4642 Unsaved changes to nested attribute collections are lost when using collection was updated in Ruby on Rails
  • James Le Cuirot
    • Tag changed from nested attributes, active_record, testcase to nested attributes, active_record, patch, testcase
    by James Le Cuirot at 12:40 PM

    Here you go. I thought it might be as simple as find_target.map { |r| @target.delete(r) || r } + @target but to my surprise, Array#delete returns the object you...

Tuesday, June 08 2010
876 :limit for primary key columns was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 4:52 PM

    I might look at it again once I move up to Rails 3. I don't use MySQL anymore but I don't want to see the effort go to waste. To answer Michael's question, it w...

Monday, June 07 2010
4766 nested_attributes fails to update/destroy when association is loaded between ... was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 9:18 PM

    Yes, this is the same as my issue. I have proposed a solution that does not involve undoing the commit that broke it.

4642 Unsaved changes to nested attribute collections are lost when using collection was updated in Ruby on Rails
Sunday, June 06 2010
3339 Giving same association in :include and :join can result in table being joine... was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 5:22 PM

    Actually, as my test case highlights, my original description falls short. You don't even need to specify a second association, merely requiring eager loading f...