]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Add framework for parameter validation using rails_param gem
[rails.git] / config / routes.rb
index d1e4c74ae5e06c0d00736051520e1031bdd96411..1a229b365dcdf5ea1d85596dd3f06b31b8de60a1 100644 (file)
@@ -347,6 +347,7 @@ OpenStreetMap::Application.routes.draw do
   resources :redactions
 
   # errors
+  match "/400", :to => "errors#bad_request", :via => :all
   match "/403", :to => "errors#forbidden", :via => :all
   match "/404", :to => "errors#not_found", :via => :all
   match "/500", :to => "errors#internal_server_error", :via => :all