summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-16 17:15:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-16 17:15:40 +0000
commit537be80be26c38d5384d588873d2682fd908ee62 (patch)
tree0f4a60940759a5ad8d86bebcd17b36649b02dfc8 /config/routes.rb
parent5c2de4dfc95293a7965ff8cf980a310922fc4c05 (diff)
downloadredmine-537be80be26c38d5384d588873d2682fd908ee62.tar.gz
redmine-537be80be26c38d5384d588873d2682fd908ee62.zip
Adds a macro for inserting thumbnails in formatted text (#3510).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10013 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 87e656475..d904c9b9e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -264,7 +264,7 @@ RedmineApp::Application.routes.draw do
match 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/, :via => :get
match 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/, :via => :get
match 'attachments/download/:id', :controller => 'attachments', :action => 'download', :id => /\d+/, :via => :get
- match 'attachments/thumbnail/:id', :controller => 'attachments', :action => 'thumbnail', :id => /\d+/, :via => :get
+ match 'attachments/thumbnail/:id(/:size)', :controller => 'attachments', :action => 'thumbnail', :id => /\d+/, :via => :get, :size => /\d+/
resources :attachments, :only => [:show, :destroy]
resources :groups do