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.

Christopher Thompson's latest activity

Thursday, February 10 2011
6406 ActiveRecord::XmlSerializer fails with has_one types was created in Ruby on Rails
  • Christopher Thompson
    Christopher Thompson created the ticket at 6:05 PM

    This problem exists in Rails 2.3.10. Code inspection in 3-0-stable shows the problem also exists there, but I have not verified this. Below, I am discussing Rai...

Thursday, November 25 2010
2399 Incorrect inflectors for 'business' or '*ness' was updated in Ruby on Rails
  • Christopher Thompson
    Christopher Thompson commented at 5:05 PM

    In ticket #6057, Andrés Mejía asked:

    "Rails has a longstanding policy of not taking further inflector patches."

    May I ask what is the reason behind this?

    I'd ...

  • Christopher Thompson
    Christopher Thompson commented at 5:02 PM

    Another workaround. Instead of:

    s = 'Address'
    s.singularize # 'Addres'
    

    Do:

    s = 'Address'
    s.pluralize.singularize # 'Address'
    

    Note that this affects the beha...

Wednesday, November 24 2010
6057 'Address' does not singularize properly was created in Ruby on Rails
  • Christopher Thompson
    Christopher Thompson created the ticket at 5:25 PM

    Using Rails 2.3.5 or Rails 3.0.3, testing in irb:

    'Address'.singularize
    => "Addres"
    

    However, the following works:

    'Address'.pluralize.singularize
    => "Address...