Ben
Ben

Reputation: 5172

rails routing / case insensitive urls

I had never noticed that an url is treated differently if it is "capslocked"

/categories do work

/CATEGORIES won't, treated as another route

Is there a way to make it work seemlessly ? What could be the limitations ?

Upvotes: 0

Views: 739

Answers (1)

J Plato
J Plato

Reputation: 898

I tested this in Rails 4.2 and it still works: http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/

Upvotes: 1

Related Questions