Rails 3.2.7 gives routing error with point in URL #7269

ghost opened this Issue Aug 5, 2012 · 1 comment


None yet
1 participant

ghost commented Aug 5, 2012

I have a search form written with Rails 3.2.7 when I query it everything works fine as long as I do not put a point in my query. Eg:

http://localhost:3000/en/job/search/q/test     - WORKS 
http://localhost:3000/en/job/search/q/test.    - DOES NOT WORK 

URL with point at the end gives a
Routing Error: No route matches [GET] "/en/job/search/q/test.

How can I solve this?


steveklabnik commented Aug 5, 2012

This is a more appropriate question for StackOverflow, as this isn't a bug. You need to use a special constraint: http://guides.rubyonrails.org/routing.html#segment-constraints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment