Hi, just upgraded an app from Rails 2.1.0 to 2.2.2 and finding my routes 
stopped working


URL which doesn't match is:
http://blah/blog/auth/login

Route is:
map.connect 'blog/:controller/:action/:id', :requirements => 
{:controller => /(auth|asdf)/}

In fact, neither does this match:
map.connect 'blog/:controller/:action/:id', :requirements => 
{:controller => /(auth)/}

But this does:
map.connect 'blog/:controller/:action/:id', :requirements => 
{:controller => /auth/}

So the problem seems to be that "(  )" syntax is breaking the regexp 
parsing.  Curiously though the regexp *does* work for link generation, 
it's only route recognition which breaks

Can anyone give me a quick workaround for this, quite a lot or routes to 
alter otherwise...

Thanks

Ed W



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to