Replace requirements with constraints in routes.rb

Fixed some 404 issues