Routes.rb: can I use case-insensitive regular expressions?

Dear all,

I have something like this in routes.rb:

map.connect ‘:test’, :controller => ‘help’, :requirements => { :test
=> /apple/i }

But then, the URL “/apple” works but “/APPLE” does not!

Why doesn’t the i-for-case-insensitive work?

Thanks for any advice,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs