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.

There was a problem

You must be a member of this account.

Matt Powell's latest activity

Thursday, July 29 2010
5236 select_time with :step option doesn't always have a selected value was updated in Ruby on Rails
  • Matt Powell
    Matt Powell commented at 3:10 AM

    ...Luckily, the change is one line.

  • Matt Powell
    Matt Powell created the ticket at 3:09 AM

    When using the select_time helper with the :step option, the generated select field has no selected option if the minutes part of the time is not an exact multi...

Tuesday, June 15 2010
4653 before_validation callbacks being run AFTER validation [ActveModel 3.0.0.beta3] was updated in Ruby on Rails
  • Matt Powell
    Matt Powell commented at 1:48 AM

    Neeraj: I disagree: I think it's terrible.

    A callback defined to be run before validation should be run before validation, not after if that happens to be the o...

Thursday, May 27 2010
4653 before_validation callbacks being run AFTER validation [ActveModel 3.0.0.beta3] was updated in Ruby on Rails
  • Matt Powell
    Matt Powell commented at 11:10 PM

    @Cyril

    This isn't ActiveRecord, though. The whole idea of ActiveModel is that callbacks, validations, etc should be able to be used independently of ActiveRecor...

Thursday, May 20 2010
4653 before_validation callbacks being run AFTER validation [ActveModel 3.0.0.beta3] was created in Ruby on Rails
  • Matt Powell
    Matt Powell created the ticket at 1:41 AM

    Take a look at this gist.

    Both specs should pass: the before_validate callback should always be run before the validators. Instead, what appears to be happening...

Friday, May 22 2009
2694 Nested resources inherit requirements on parent ids was created in Ruby on Rails
  • Matt Powell
    Matt Powell created the ticket at 3:21 AM

    The problem

    Consider the following resource routing code for a site where product ids are of the form ABCD.123:

    map.resources :products, :requirements => { :id...