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.

Andrew White's latest activity

Saturday, June 19 2010
4904 :constraints option in router won't accept an object was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Jeremy Kemper
    by Andrew White at 9:01 PM
  • Andrew White
    • Tag set to rails 3.0, actiondispatch, constraints, patch, routing
    by Andrew White at 8:57 PM

    Attached patch fixes the problem - thanks for the test case.

4899 route generation fails with :module written in Symbol was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Jeremy Kemper
    by Andrew White at 1:02 PM

    Actually, don't bother Daisuke - this is actually a symptom of a deeper problem. I was using :module to try and determine the shallow path and name prefix. As y...

3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 7:59 AM

    Attached patch to scope custom resource routes using match

Friday, June 18 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 5:46 PM

    Rolf, my previous answer still applies - if you use :as => :section_add_document then it will come out as sector_section_add_document. However it'll likely be c...

  • Andrew White
    Andrew White commented at 5:07 PM

    The routes are still correct, it's just that they're named the same so the later ones win. You route definitions need rewriting firstly as :conditions => { :met...

4899 route generation fails with :module written in Symbol was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 5:35 PM

    Daisuke, the same problem occurs in the nested scope as well - can you fix it there and upload a new patch (with extra tests for the nested scope)?

    Failing rout...

4900 resouces :only => :create broken since :shallow added was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 4:53 PM

    Josh, by all means come up with a new patch with more extensive tests and then your patch can get applied and you'll get the credit.

  • Andrew White
    Andrew White commented at 4:27 PM

    Nearly Josh, but you forget the lonely old singleton resource - good catch though.

    The attached patch is basically the same as yours - I just aliased collection...

4898 Routing issue with 'uncountable' resources was updated in Ruby on Rails