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.

David Stevenson's latest activity

Saturday, June 20 2009
2503 validates_uniqueness_of is horribly inefficient in mysql was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 6:49 PM

    I've had this problem before too. It's a tricky situation because it depends on the setup of MySQL (and its case sensitivity, which is different by default depe...

Wednesday, March 11 2009
1993 f.radio_button ignores parent fields_for's :index option was updated in Ruby on Rails
  • David Stevenson
    • Tag set to form_helper, label_tag, patch, radio_button_tag
    by David Stevenson at 4:32 PM

    Koz,

    Attached patch should fix both issues... and complete with tests.

Tuesday, February 17 2009
1994 associations#find should use scoped(construct_scope).find except with custom ... was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 4:06 PM

    Pratik - Do you still want me to contribute a patch if possible? I had this partly done, but not all tests are passing yet.

Monday, February 16 2009
1994 associations#find should use scoped(construct_scope).find except with custom ... was created in Ruby on Rails
  • David Stevenson
    David Stevenson created the ticket at 9:47 PM

    There's a lot of logic duplication in associations.

    When a find(options) is triggered on an association, the following things currently happen explicitly in the...

1993 f.radio_button ignores parent fields_for's :index option was created in Ruby on Rails
  • David Stevenson
    David Stevenson created the ticket at 9:30 PM

    The following view code does not work as expected:

    fields_for @post, :index => 1 do |f|
      f.radio_button :title, "Hello"
    end
    
    

    The ID of the radio button gener...

1992 f.label should work for targeting f.radio_button was updated in Ruby on Rails
  • David Stevenson
    • Tag changed from activerecord, form_helper, label, radio_button to activerecord, form_helper, label, patch, radio_button
    by David Stevenson at 8:00 PM

    Attaching patch complete with test.

  • David Stevenson
    David Stevenson created the ticket at 7:26 PM

    It's impossible to automatically generate a label for a radio button using a form helper. The for="" attribute of a label tag cannot be generated with the same ...

Monday, February 09 2009
1913 Use #to_param in generated controller tests. was updated in Ruby on Rails
Monday, December 29 2008
1295 [PATCH] making ActiveRecord #with_scope merge :selects was updated in Ruby on Rails
  • David Stevenson
    David Stevenson commented at 5:21 AM

    This is a very interesting ticket, which I bet many of us have thought about before. Merging selects sounds difficult, but not impossible like merging GROUP BY,...

1642 HasOneThroughAssociation should not be a child of HasManyThroughAssociation was updated in Ruby on Rails