SUZUKI Miho
null+****@clear*****
Wed Sep 19 20:44:28 JST 2012
SUZUKI Miho 2012-09-19 20:44:28 +0900 (Wed, 19 Sep 2012) New Revision: dc66f08ffd3f3334b24e93cb1d3688e6c1db8678 https://github.com/logaling/logaling-server/commit/dc66f08ffd3f3334b24e93cb1d3688e6c1db8678 Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary Log: Change routes of edit,update/delete Modified files: config/routes.rb Modified: config/routes.rb (+8 -1) =================================================================== --- config/routes.rb 2012-09-19 20:13:37 +0900 (0d4dd25) +++ config/routes.rb 2012-09-19 20:44:28 +0900 (41faa90) @@ -19,7 +19,14 @@ LogalingServer::Application.routes.draw do :as => :glossaries do resources :terms, :path => 'terms', - :as => :terms + :as => :terms, + :only => [:new, :create] do + collection do + delete "destroy" + post "edit" + put "update" + end + end end end -------------- next part -------------- An HTML attachment was scrubbed... 下載