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.

Anthony Green's latest activity

Monday, August 30 2010
2694 Nested resources inherit requirements on parent ids was updated in Ruby on Rails
  • Anthony Green
    Anthony Green commented at 9:11 AM

    Moments later I spot the typo:

    the nested resource should be declared singularly so resource not resources

    resources :foo, :constraints => { :id => /\d+/ } do
    r...

  • Anthony Green
    Anthony Green commented at 9:04 AM

    Now I'm not sure if this is the same issue or a slight variation:

    resources :foo, :constraints => { :id => /\d+/ } do
    resources :bar end

    rake routes:

    edit_foo_...
Sunday, August 29 2010
2694 Nested resources inherit requirements on parent ids was updated in Ruby on Rails
  • Anthony Green
    Anthony Green commented at 10:22 PM

    I'm still seeing this bug in Actionpack (3.0.0.rc2) but it has been marked as resolved ?

Tuesday, March 16 2010
4189 constraints with resources in routes don't catch regex was created in Ruby on Rails
  • Anthony Green
    Anthony Green created the ticket at 7:42 AM

    resources :resource, :constraints => { :id => /regex/ }

    doesn't catch the regex and lets the request through to the controller

    match 'path/:id' => 'controller#a...

Monday, January 12 2009
173 config.gem will not load gems with a hyphen in the name was updated in Ruby on Rails
  • Anthony Green
    Anthony Green commented at 1:51 PM

    Found the answer: http://ryandaigle.com/articles/2...

    config.gems assumes the lib file is the same name as the gem hence the need to use :lib => lib_file_name

  • Anthony Green
    • Tag set to edge, railties, rake
    by Anthony Green at 12:36 PM

    Would some kind soul please add a note outlining the cause of the 'bug' because I'm experiencing it too. Though I'm grateful for Rich's fix, explainations help ...