]> source.dussan.org Git - redmine.git/commitdiff
Adds route names for r11072.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 22 Dec 2012 15:57:27 +0000 (15:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 22 Dec 2012 15:57:27 +0000 (15:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11073 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/routes.rb

index 47bc0137793f173333e85794ede3b85ac2f5d8b0..ad1465f20d1412d9c2979c5040efbf4f8af557af 100644 (file)
@@ -32,12 +32,12 @@ RedmineApp::Application.routes.draw do
   match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
   match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
 
-  match 'boards/:board_id/topics/new', :to => 'messages#new', :via => [:get, :post]
+  match 'boards/:board_id/topics/new', :to => 'messages#new', :via => [:get, :post], :as => 'new_board_message'
   get 'boards/:board_id/topics/:id', :to => 'messages#show', :as => 'board_message'
   match 'boards/:board_id/topics/quote/:id', :to => 'messages#quote', :via => [:get, :post]
   get 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
 
-  post 'boards/:board_id/topics/preview', :to => 'messages#preview'
+  post 'boards/:board_id/topics/preview', :to => 'messages#preview', :as => 'preview_board_message'
   post 'boards/:board_id/topics/:id/replies', :to => 'messages#reply'
   post 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
   post 'boards/:board_id/topics/:id/destroy', :to => 'messages#destroy'