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

Thursday, June 24 2010
4389 Redirect broken when using namespaces in routes.rb was updated in Ruby on Rails
  • Andrew White
    • State changed from new to open
    by Andrew White at 11:52 AM

    Updated patch which doesn't namespace redirect path

  • Andrew White
    Andrew White commented at 11:16 AM

    I thought about that and you'd handle that situation like this:

      match '/admin', :to => redirect('/other')
    

    To me it seems everything within a namespace block...

  • Andrew White
    Andrew White commented at 10:56 AM

    Attached patch fixes this issue.

    I've written it so that the redirect path is namespaced which seems logical to me:

    namespace :admin do
      root :to => redirect(...
Andrew White Andrew White was invited to Ruby on Rails at 11:43 AM
4952 Incorrect pluralization, can't fix with inflectors was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 11:36 AM

    Works for me:

    # config/initializers/inflections.rb
    ActiveSupport::Inflector.inflections do |inflect|
      inflect.irregular 'niche', 'niches'
    end
    

    produces:

    andy...
Wednesday, June 23 2010
4874 Calling mount and resource inside the router makes mount stop working was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 12:06 PM

    Josh, I think I've identified the problem. When you have a small number of routes then '/' may be dropped from the separator pattern because it doesn't appear e...

  • Andrew White
    Andrew White commented at 11:24 AM

    It looks as though the problem is somewhere in Rack::Mount::Analysis::Splitting.

    This is what I get for @recognition_key_analyzer.possible_keys when using resou...

Tuesday, June 22 2010
4874 Calling mount and resource inside the router makes mount stop working was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 6:56 PM

    Still getting the problem here when using Sinatra 1.0. It's triggered by defining a singleton resource at the top level. If you nest the resource then it works....

Saturday, June 19 2010
4898 Routing issue with 'uncountable' resources was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 10:39 PM

    Christoper, I've added a patch to #3930 - check it out and see if it fixes your problem.

3930 Uncountable inflections lead to exception with Rails 3 scaffolding was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 10:38 PM

    Okay, here's a patch that should fix this issue.