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.

This project is archived and is in readonly mode.

Ensure AR validation errors to be ordered in declared order

#2301

AR#errors sometimes returns error messages in unexpected order.

I wrote a patch to use OrderedHash for AR#errors in order to generate nicely ordered error messages even in good old Ruby 1.8.

Reported by Akira Matsuda · March 20th, 2009 @ 01:56 AM

State: committed
Milestone: 2.3.6
Assigned to: nobody
Importance: High

Activity

  1. José Valim
  2. ysakaki
  3. Phil Misiowiec
    Phil Misiowiec

    +1 used it in a project - very useful.

    Note: you'll need at least http://github.com/rails/rails/co... or else you'll get an undefined on each_key. I grabbed the latest 2.3 stable version of http://github.com/rails/rails/bl... and it works fine.

    March 24th, 2009 @ 04:59 PM

  4. George Anderson
  5. Dmitry Polushkin
    Dmitry Polushkin

    Any news on this ticket? Please include this patch into 2.3.4. Thanks!

    July 29th, 2009 @ 01:33 PM

  6. Repository
    Repository
    • Milestone changed from 2.x to 2.3.6
    • State changed from new to committed

    September 12th, 2009 @ 03:02 AM

  7. Jeremy Kemper
    Jeremy Kemper

    Updated in Active Model on master, too.

    September 12th, 2009 @ 03:40 AM