summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-14 20:51:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-14 20:51:49 +0000
commit6ce28450c00483f0f6962d3e9022735cbe5b7903 (patch)
tree26eb528f15fc646c8e7fa4a522f65a6aff92f675 /config/routes.rb
parent4ebdcf13db34186bb562ed523c637dd6edc86682 (diff)
downloadredmine-6ce28450c00483f0f6962d3e9022735cbe5b7903.tar.gz
redmine-6ce28450c00483f0f6962d3e9022735cbe5b7903.zip
Adds a named route for thumbnails and use route helper in #thumbnail_tag.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11188 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 7a1eb663a..061bdf7ba 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -260,7 +260,7 @@ RedmineApp::Application.routes.draw do
get 'attachments/:id/:filename', :to => 'attachments#show', :id => /\d+/, :filename => /.*/, :as => 'named_attachment'
get 'attachments/download/:id/:filename', :to => 'attachments#download', :id => /\d+/, :filename => /.*/, :as => 'download_named_attachment'
get 'attachments/download/:id', :to => 'attachments#download', :id => /\d+/
- get 'attachments/thumbnail/:id(/:size)', :to => 'attachments#thumbnail', :id => /\d+/, :size => /\d+/
+ get 'attachments/thumbnail/:id(/:size)', :to => 'attachments#thumbnail', :id => /\d+/, :size => /\d+/, :as => 'thumbnail'
resources :attachments, :only => [:show, :destroy]
resources :groups do