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.

Chris Barnett's latest activity

Saturday, February 07 2009
1818 Wrong view rendered was updated in Ruby on Rails
  • Chris Barnett
    Chris Barnett commented at 10:23 PM

    Looks like that commit may not have fixed the problem.

    See the attached patch, it just adds a "shared.html.erb~" file to actionpack's test fixtures, which cause...

Monday, January 19 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
Friday, December 05 2008
1516 Average, Maximum, Minimum on associations should return 0 when no rows are re... was updated in Ruby on Rails
  • Chris Barnett
    Chris Barnett commented at 1:33 PM

    I should also point out there is a bit of history on this. ActiveRecord actually used to return 0.0 for these calculations: http://dev.rubyonrails.org/ticke...

    ...

  • Chris Barnett
    Chris Barnett commented at 7:25 AM

    -1

    The current return value for these calculations on empty sets is nil, which can be very useful:

    
    @product.reviews.average(:rating) || "not yet reviewed"
    

    W...

Tuesday, August 19 2008
857 Serialized attribute values "Yes" or "No" get coerced into booleans was updated in Ruby on Rails
  • Chris Barnett
    • Tag changed from 2.1, activerecord, bug, serialize to 2.1, activerecord, bug, edge, serialize
    by Chris Barnett at 5:09 AM

    I can confirm this test fails for both 2.1 and edge.

    The reason it fails is that attribute serialization was not written to support serialization of Strings.

    ...

Monday, August 18 2008
850 Couldn't find Class with ID=#num was updated in Ruby on Rails
  • Chris Barnett
    Chris Barnett commented at 5:04 AM

    The :joins parameter adds an INNER JOIN clause to the query, which causes the database to filter out clients without a mailing_address.

    Replacing :joins with :...

Tuesday, July 08 2008
566 link_to with single string argument was updated in Ruby on Rails
  • Chris Barnett
    Chris Barnett commented at 4:58 AM

    I think this is a good idea, but I'm not sure about the implementation.

    I've always been able to do

    <%= link_to "Somewhere" %>
    

    To create a placeholder for ...

Wednesday, June 18 2008
429 Support for HTML Class String in options_for_select was updated in Ruby on Rails
  • Chris Barnett
    Chris Barnett commented at 7:54 AM

    I don't think this is the best way to fix this problem. What happens when you want to specify the 'id', 'lang', 'style', or 'title' attributes?

    Is there a mor...