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.

Matthew Moore's latest activity

Thursday, April 30 2009
2584 2.3.2 ActiveResource JSON doesn't send parameters with root node was updated in Ruby on Rails
  • Matthew Moore
    • Assigned user set to Rick
    by Matthew Moore at 6:49 PM
  • Matthew Moore
    Matthew Moore commented at 6:47 PM

    Here's the applicable code within ActiveResource::Base, which makes it pretty obvious what's going on:

    
        # Returns the serialized string representation of ...
  • Matthew Moore
    Matthew Moore created the ticket at 6:40 PM

    If you create a new 2.3.2 rails project with an ActiveResource model with format set to JSON, e.g.

    
    class MyModel < ActiveResource::Base
      self.site = "http:...
Sunday, January 11 2009
1730 ActiveResource::Base.prefix isn't reset correctly when ActiveResource::Base.s... was updated in Ruby on Rails
  • Matthew Moore
    Matthew Moore commented at 6:16 PM

    It seems odd to me that the prefix is stored in a method (by redefining a method when it's set), rather than a variable.

    Was there any method to this madness? W...

  • Matthew Moore
    Matthew Moore created the ticket at 6:16 PM

    If you need to set the values for ActiveResource.site with a URI that includes a path, ActiveResource::Base.prefix will be wrong.

    Consider this example. If you ...

Saturday, January 10 2009
1716 ActiveResource should use to_param to generate routes was updated in Ruby on Rails
  • Matthew Moore
    Matthew Moore commented at 10:52 PM

    This actually only applies to ActiveResource::CustomMethods ActiveResource already uses to_param

Friday, January 09 2009
1717 ActiveResource::CustomMethods#put should behave like #post for body encoding was created in Ruby on Rails
  • Matthew Moore
    Matthew Moore created the ticket at 9:27 AM

    If you compare the two methods in ActiveResrouce::CustomMethods, you see:

    
    
          def post(method_name, options = {}, body = nil)
            request_body = bod...
1716 ActiveResource should use to_param to generate routes was created in Ruby on Rails
  • Matthew Moore
    Matthew Moore created the ticket at 9:06 AM

    Let's say you have a resource that uses a permalink to_param, instead of id.

    To find this using ActiveResource, you'd usually do something like:

    
    ar = MyActiv...
Monday, December 01 2008
1472 ActiveResource 2.2.2 errors.from_xml Can't handle symboled attribute keys bec... was updated in Ruby on Rails
  • Matthew Moore
    Matthew Moore commented at 8:13 PM

    Actually I've been looking into this more, and it might be better instead to stringify_keys! in the attributes= method like ActiveRecord does. Still thinking ab...

Tuesday, November 25 2008
1472 ActiveResource 2.2.2 errors.from_xml Can't handle symboled attribute keys bec... was created in Ruby on Rails
  • Matthew Moore
    Matthew Moore created the ticket at 8:09 PM

    If you look at:

    
        # Grabs errors from the XML response.
        def from_xml(xml)
          clear
          humanized_attributes = @base.attributes.keys.inject({}) { |...