diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 12:52:08 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 12:52:08 +0000 |
commit | 5127f3dcbc192015f35836be8eb47f4944bbc337 (patch) | |
tree | 797d731216ca3a29fe0c2793d9af39d495f4a521 /config | |
parent | 49ceb577ec769db5a4f8ed53d5b1ffd767d3b8fc (diff) | |
download | redmine-5127f3dcbc192015f35836be8eb47f4944bbc337.tar.gz redmine-5127f3dcbc192015f35836be8eb47f4944bbc337.zip |
route: move attachments resources after matching
On Rails3.0, 'match' needs before resources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8439 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index af9c2410a..480459bf2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -261,7 +261,6 @@ ActionController::Routing::Routes.draw do |map| :conditions => {:method => :post} end - map.resources :attachments, :only => [:show, :destroy] # additional routes for having the file name at the end of url map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/, @@ -272,6 +271,7 @@ ActionController::Routing::Routes.draw do |map| map.connect 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/, :conditions => {:method => :get} + map.resources :attachments, :only => [:show, :destroy] map.resources :groups, :member => {:autocomplete_for_user => :get} map.group_users 'groups/:id/users', :controller => 'groups', |