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

Monday, June 28 2010
4996 named path for resource GET (index) and POST (create) are inverted was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Andrew White
    • State changed from new to wontfix
    • Importance changed from to Low
    by Andrew White at 11:13 PM

    This is purely a cosmetic issue in the output of rake routes. I did look at restoring the Rails 2 output by not defining names for actions like create, etc. but...

4443 url_for doesn't accept dot characters was updated in Ruby on Rails
  • Andrew White
    • State changed from new to resolved
    • Importance changed from to Low
    by Andrew White at 1:51 PM

    Appears to resolved in master - please post here if you can reproduce.

4752 Matching routes with :constraints in functional tests was updated in Ruby on Rails
2694 Nested resources inherit requirements on parent ids was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 12:13 PM

    This almost works with the new router now:

      # Works
      resources :movies, :id => /\d+/ do
        resources :reviews
      end
    
      # Works
      resources :movies, :constra...
4475 Resources is not passing all options to yield was updated in Ruby on Rails
  • Andrew White
    • State changed from new to resolved
    • Assigned user changed from Ryan Bigg to Andrew White
    • Importance changed from to Low
    by Andrew White at 10:13 AM

    This appears to be resolved by the patch applied from #3765. Please comment here if you think it doesn't.

2809 [PATCH] Allowed controlled addition of new http methods was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Andrew White
    • State changed from new to needs-more-info
    • Importance changed from to Low
    by Andrew White at 10:02 AM

    Routing has completely changed in 3.0, so the patch is out of date. You can specify any HTTP method using the :via option to a route. Does this provide the func...

4744 ActiveRecord uses wrong class for has_many association was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 10:00 AM

    Which version of rails are you using?

    This definition for the Account model works for me in 2.3.8:

      class Account < ActiveRecord::Base
        has_many :reports, ...
  • Andrew White
    • Assigned user set to Andrew White
    by Andrew White at 9:45 AM

    The :class_name option should be passed a string '::Report' - by doing as ::Report.name it removes the leading scope operator.

4722 Path generation with array syntax and resources :as was updated in Ruby on Rails
  • Andrew White
    • State changed from new to needs-more-info
    • Assigned user set to Andrew White
    • Importance changed from to Low
    by Andrew White at 9:36 AM

    Are you looking to just change the url or do you want to change the path helper name as well?

    If you just want to change the url then this should do what you wa...

1458 Namespaced resources fail in production when controllers are not namespaced was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Andrew White
    • State changed from new to resolved
    • Milestone cleared.
    • Importance changed from to
    by Andrew White at 9:27 AM

    This will now be possible with the 3.0 RC

      scope(:path => 'time', :as => :time) do
        resources :tags
      end