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.

Rob Anderton's latest activity

Saturday, May 02 2009
2600 Quote table name in JoinAssociation was created in Ruby on Rails
Friday, May 01 2009
2597 Fix binary fixture test on Windows was created in Ruby on Rails
  • Rob Anderton
    Rob Anderton created the ticket at 11:30 PM

    Not the most exciting patch ever contributed! The binary fixture test for ActiveRecord fails on Windows because binary mode isn't used to read the fixture file....

Friday, April 03 2009
2406 Countercache not updating updated_at field was updated in Ruby on Rails
  • Rob Anderton
    • Title changed from Countercahce not updating updated_at field to Countercache not updating updated_at field
    by Rob Anderton at 11:18 AM

    This has come up before (a long time ago): http://dev.rubyonrails.org/ticke...

    Wouldn't be hard to patch, but I guess the question is, should it be?

Wednesday, March 18 2009
2228 ActiveRecord::Base#saved? was updated in Ruby on Rails
  • Rob Anderton
    Rob Anderton commented at 1:59 PM

    oops, foiled by the formatting gods...lets try that again:

    
    <% unless @author.new_record? %> 
      <%# do stuff %> 
    <% end %>
    
  • Rob Anderton
    Rob Anderton commented at 1:58 PM

    I'd agree that saved_record? is a bit vague. existing_record? is better but seems like more typing :) I typically use:

    @@@ruby <% unless @author.new_record? %> ...

Friday, March 13 2009
1945 Multipart form with empty file_field submits nil was updated in Ruby on Rails
  • Rob Anderton
    Rob Anderton commented at 9:18 AM

    I've submitted a slightly different patch over on the rack lighthouse that removes the empty file param instead of setting it to nil/blank.

    I'll post a note on ...

Thursday, March 12 2009
1945 Multipart form with empty file_field submits nil was updated in Ruby on Rails
  • Rob Anderton
    Rob Anderton commented at 9:53 PM

    fwiw I'd agree that excluding file fields with no upload from params makes more sense than leaving them in and set to nil.

Monday, March 09 2009
2186 Anonymous extension modules for all associations was created in Ruby on Rails
  • Rob Anderton
    Rob Anderton created the ticket at 11:10 PM

    has_one and belongs_to associations support the :extend option (although it isn't documented) but do not support anonymous modules as easily as has_many associa...

Sunday, March 08 2009
2024 default_scope, :order => :symbol, and Model.last conflict. was updated in Ruby on Rails
  • Rob Anderton
    • Tag set to active_record, bug, find_last, order, patch
    by Rob Anderton at 11:16 PM

    I also hit this bug today, I've attached a simple patch that fixes the problem along with an extra test case.

Sunday, December 14 2008
1563 Deprecations and dependencies logger and controller failsafe_logger errors was updated in Ruby on Rails
  • Rob Anderton
    • Tag changed from actioncontroller, active_support, bug to actioncontroller, active_support, bug, patch
    by Rob Anderton at 4:12 PM

    +1 That works for me, thanks.

    Again, apologies for not patching this myself - not being lazy (honest!) just too many pre-christmas deadlines to worry about righ...