Permalink
Browse files

refactor download routes

  • Loading branch information...
1 parent c1fbeb7 commit ed18f4ea853ae80ad0263ef7dedf98d0bdfdd371 @bry4n bry4n committed Aug 7, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 config/routes.rb
View
@@ -39,11 +39,10 @@
match "/:lang/ch:chapter-:section.html" => "books#chapter"
end
- resource :download, :controller => :downloads, :only => [:index] do
- match "/:platform" => "downloads#download"
- match "/gui/:platform" => "downloads#gui"
- end
-
+ match "/download" => "downloads#index"
+ match "/download/:platform" => "downloads#download"
+ match "/download/gui/:platform" => "downloads#gui"
+
resources :downloads, :only => [:index] do
collection do
match "/guis" => "downloads#guis"

0 comments on commit ed18f4e

Please sign in to comment.