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.

Joe Martinez's latest activity

Thursday, August 27 2009
2584 2.3.2 ActiveResource JSON doesn't send parameters with root node was updated in Ruby on Rails
  • Joe Martinez
    Joe Martinez commented at 10:23 PM

    No problem, I wrote this patch for a client and it's part of a production application. We haven't had any problems with it so far, but I'm sure the Rails 3 guys...

Tuesday, June 30 2009
2584 2.3.2 ActiveResource JSON doesn't send parameters with root node was updated in Ruby on Rails
  • Joe Martinez
    Joe Martinez commented at 9:05 PM

    Patched it.

    Added an ActiveResource::Base option to include_root_in_json just like ActiveRecord.

  • Joe Martinez
    Joe Martinez commented at 8:11 PM

    Nevermind the above - it's for ActiveRECORD. This problem does exist in ActiveResource.

  • Joe Martinez
    Joe Martinez commented at 8:10 PM

    You can fix this by adding
    ActiveRecord::Base.include_root_in_json = true

    in a initializer. Hope this will be default in Rails3