From: Ævar Arnfjörð Bjarmason Date: Thu, 1 Oct 2009 20:08:13 +0000 (+0000) Subject: Add a route for '/blocks/new/:display_name' so links will be X-Git-Tag: live~6552^2~13 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/269ad0f52ea3e4969007dca2276cdfe9717c0b94?ds=inline Add a route for '/blocks/new/:display_name' so links will be '/blocks/new/Example' not '/blocks/new?display_name=Example' --- diff --git a/config/routes.rb b/config/routes.rb index 6072cdcb1..1e59ed074 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -208,6 +208,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/user/:display_name/blocks_by', :controller => 'user_blocks', :action => 'blocks_by' map.resources :user_blocks, :as => 'blocks' map.connect '/blocks/:id/revoke', :controller => 'user_blocks', :action => 'revoke' + map.connect '/blocks/new/:display_name', :controller => 'user_blocks', :action => 'new' # fall through map.connect ':controller/:id/:action'