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.

David's latest activity

Monday, July 26 2010
4971 nested includes in AR causes duplicates in to_json / to_xml was updated in Ruby on Rails
  • David
    David commented at 6:27 PM

    Yes it works now! With :uniq => true and your changes i'm getting the desired results, thanks!

Friday, July 16 2010
4971 nested includes in AR causes duplicates in to_json / to_xml was updated in Ruby on Rails
  • David
    David commented at 2:17 PM

    Hey Neeraj, I still get 3 records in the to_xml / to_json output. The count for count2 = p.tasks.size is 1 though.

Friday, June 25 2010
4971 nested includes in AR causes duplicates in to_json / to_xml was updated in Ruby on Rails
  • David
    • Tag set to activerecord rails3, activerelation, to_json, to_xml
    by David at 6:04 PM
  • David
    David created the ticket at 5:15 PM

    In Rails edge using #to_xml or #to_json on an ActiveRecord::Relation with includes causes duplicate entries.

    The model is: Projects has_many Tasks habtm Users

    E...

Thursday, May 13 2010
2415 accepts_nested_attributes_for does't work when nested_attributes hash has an ... was updated in Ruby on Rails
  • David
    David commented at 5:32 PM

    As Scoot Rushforth described it, the patch doesn't solve the problem. The ActiveRecord::RecordNotFound exception should be raised only if the nested record is n...