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.

ronin-24025 (at lighthouseapp)'s latest activity

Friday, December 19 2008
1602 failsafe_response 200 OK was created in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) created the ticket at 7:18 AM

    I've been invoking internal server errors to test Rails status code handling by sending in some malformed JSON.

    For an internal server error, however, failsafe_...

Monday, December 15 2008
1576 to_json <> to_xml (dasherize => true, methods => other_ids) was created in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) created the ticket at 12:30 PM

    I've been developing a Rails application, the sole purpose of which is to act as a REST API, sending and receiving JSON or XML.

    Along the way, numerous discrepa...

1575 ActiveRecord DateTime, Time Mappings was created in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) created the ticket at 12:14 PM

    It appears to not be possible to call to_xml on an ActiveRecord object with various Time, Datetime columns and have it return the following:

    
    <hour>
        <fro...
Tuesday, October 28 2008
458 record.to_xml(:methods => other_ids) yields incorrect representation was updated in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) commented at 5:27 PM

    Yep, still a problem.

    Including the result of an other_ids method for JSON gives an array eg. [1,2,3,4,5]

    Including the result of the same other_ids method for ...

Wednesday, August 20 2008
541 Dirty Attributes with Associations was updated in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) commented at 6:25 PM

    Josh Susser, right, got you now.

  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) commented at 5:54 PM

    Jeremy, thanks, I better keep my mouth shut more in future! ;)

    Josh, surely "the difference between asking if person's name attribute has a different value and...

  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) commented at 7:58 AM

    Re: "It's not very common to track association changes."

    I would say that the data suggests otherwise.

    And as an example: "→ Assigned user changed from “” to ...

Thursday, July 10 2008
458 record.to_xml(:methods => other_ids) yields incorrect representation was updated in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) commented at 8:35 PM

    Hi Clemens, thanks for the comment. When it comes to type conversion, Rails certainly uses this to elegant effect in the JSON class.

    However, the problem is t...

Friday, June 20 2008
458 record.to_xml(:methods => other_ids) yields incorrect representation was updated in Ruby on Rails
  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) created the ticket at 1:55 PM

    In Rails 2.1, one would expect that rendering a record (eg. an invoice) as xml, and including a method such as other_ids (eg. item_ids, which yields an array) ...

  • ronin-24025 (at lighthouseapp)
    ronin-24025 (at lighthouseapp) edited the ticket at 1:56 PM

    In Rails 2.1, one would expect that rendering a record (eg. an invoice) as xml, and including a method such as other_ids (eg. item_ids, which yields an array) ...