[logaling-commit] logaling/logaling-server [show-terms-of-glossary] Add glossaries to sub-resource of github project

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
Sun Jul 8 13:13:08 JST 2012


SHIMADA Koji	2012-07-08 13:13:08 +0900 (Sun, 08 Jul 2012)

  New Revision: fedc0a42d74b05eabb68fe6f5117384ba2cd1429
  https://github.com/logaling/logaling-server/commit/fedc0a42d74b05eabb68fe6f5117384ba2cd1429

  Log:
    Add glossaries to sub-resource of github project
    
    ex: /github/snoozer05/prodprog/glossaries/en-ja

  Modified files:
    config/routes.rb

  Modified: config/routes.rb (+5 -1)
===================================================================
--- config/routes.rb    2012-07-03 17:23:02 +0900 (40fd036)
+++ config/routes.rb    2012-07-08 13:13:08 +0900 (c1c8c33)
@@ -6,7 +6,11 @@ LogalingServer::Application.routes.draw do
   resources :github_projects,
     :path => 'github',
     :constraints => {:id => %r{[^/]+/[^/]+}},
-    :only => [:show, :new, :create]
+    :only => [:show, :new, :create] do
+    resources :glossaries,
+      :constraints => {:id => %r{[^-]+-[^-]+}},
+      :only => :show
+  end
 
   # The priority is based upon order of creation:
   # first created -> highest priority.
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Zurück zum Archiv-Index