Add a route for '/blocks/new/:display_name' so links will be
'/blocks/new/Example' not '/blocks/new?display_name=Example'
This commit is contained in:
parent
4708992f1c
commit
269ad0f52e
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue