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

Friday, October 08 2010
4328 Missing support for actions on a new resource in new routing DSL was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 9:30 PM

    The mapper was refactored heavily between this commit and the final release but actions on a new resource are definitely in there - can you post a sample route ...

5274 better error messages when incorrect regexp is passed to constraints in routes was updated in Ruby on Rails
Thursday, October 07 2010
5280 Specifying id in routes was updated in Ruby on Rails
  • Andrew White
    • State changed from new to needs-more-info
    by Andrew White at 7:03 AM

    Works as expected for me in 3.0.0:

    
      # Explicit
      match '/privacy', :to => 'pages#show', :as => :privacy, :via => :get, :defaults => { :id => 10 }
    
      # Shorth...
Thursday, September 23 2010
5689 assert_generates expects unexpected generated_path was updated in Ruby on Rails
  • Andrew White
    • State changed from new to invalid
    • Assigned user cleared.
    • Importance changed from to Low
    by Andrew White at 2:16 PM

    The assert_generate code tries to generate a url from a set of options - in your case these options are the same so it always generates the first logout route. ...

Sunday, September 19 2010
5663 Route generation error with :defaults and :via options was updated in Ruby on Rails
  • Andrew White
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to josh
    • Importance changed from to Low
    by Andrew White at 10:39 PM

    This is another subtle Rack::Mount bug to do with key analysis. The reason it doesn't work in test or production is that the built-in info route isn't included ...

Saturday, September 18 2010
5651 cannot test a controller action for a route defined with match was updated in Ruby on Rails
  • Andrew White
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to Andrew White
    • Importance changed from to Low
    by Andrew White at 7:53 AM

    The thing that's making your test fail is the leading slash on the controller spec - remove that and the test will pass. However your route could do with a litt...

Tuesday, September 14 2010
5548 Date.end_of_week not working in production mode was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 2:21 PM

    Still can't reproduce this using the system ruby on Mac OS X. Looking at your irb output it seems as though 13.days is returning an integer instead of a duratio...

5243 Cannot override helpers generated by routes was updated in Ruby on Rails
  • Andrew White
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to Andrew White
    • Importance changed from to Low
    by Andrew White at 6:59 AM
Sunday, September 12 2010
5609 namespace nested in resource was updated in Ruby on Rails
  • Andrew White
    • State changed from new to invalid
    • Importance changed from to Low
    by Andrew White at 1:04 AM

    The namespace option nests the controller class whereas the resource call doesn't. In production mode the app path is eagerly loaded triggering the error. If yo...

5599 Use Array.wrap instead of Array() was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 12:47 AM

    +1 from me too - Action Pack is the only place that Array() is used instead of Array.wrap. I'd like to see some failing tests though.