diff options
| author | Teddy Wing | 2017-08-07 16:51:19 +0200 | 
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 | 
| commit | 51b73758486294862c47707d9b85e7cefeb0242a (patch) | |
| tree | c1882cd76952f0da5f0851431f2d703cd35773d5 /config/routes.rb | |
| parent | 8cea700c7ebc1e9daf8eda4b35e9d9c28e46249c (diff) | |
| download | chouette-core-51b73758486294862c47707d9b85e7cefeb0242a.tar.bz2 | |
RoutesController: Add separate method for POST /duplicate
Send POST requests for duplication to a new controller method so we can
more easily handle them and separate setup and creation code.
Note that the test doesn't work. The `to change` part succeeds even
though it shouldn't. Still need to figure out what's going on there, but
committing this to hand off the feature to Robert.
Refs #4189
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index b738c0943..e73a2a494 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -111,7 +111,7 @@ ChouetteIhm::Application.routes.draw do            get 'edit_boarding_alighting'            put 'save_boarding_alighting'            get 'duplicate' -          post 'duplicate' +          post 'duplicate', to: 'routes#post_duplicate'          end          resource :journey_patterns_collection, :only => [:show, :update]          resources :journey_patterns do  | 
