diff options
| author | Xinhui | 2016-12-05 11:38:11 +0100 |
|---|---|---|
| committer | Xinhui | 2016-12-05 11:38:11 +0100 |
| commit | c18839ee89fdc4e82be9bc25b148117a96ecc3c7 (patch) | |
| tree | f79c34d7baf2f7cb2aa355b150ad7a5d08c5675d | |
| parent | fc39661b701553e00a81970f4b2475e52b53633a (diff) | |
| download | chouette-core-c18839ee89fdc4e82be9bc25b148117a96ecc3c7.tar.bz2 | |
Wip bulk_update action JourneyPatternsController
| -rw-r--r-- | app/controllers/journey_patterns_controller.rb | 5 | ||||
| -rw-r--r-- | config/routes.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/app/controllers/journey_patterns_controller.rb b/app/controllers/journey_patterns_controller.rb index 326c5397a..1e2d2f191 100644 --- a/app/controllers/journey_patterns_controller.rb +++ b/app/controllers/journey_patterns_controller.rb @@ -19,6 +19,11 @@ class JourneyPatternsController < ChouetteController object.special_update end + def bulk_update + ap "--------call to bulk_update action ------------" + ap params + end + def show @map = JourneyPatternMap.new(journey_pattern).with_helpers(self) @stop_points = journey_pattern.stop_points.paginate(:page => params[:page]) diff --git a/config/routes.rb b/config/routes.rb index 04d1875c9..f2a04c4b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -100,9 +100,9 @@ ChouetteIhm::Application.routes.draw do put 'save_boarding_alighting' end resources :journey_patterns do - member do - get 'new_vehicle_journey' - end + get 'new_vehicle_journey', on: :member + post 'bulk_update', on: :collection + resource :route_sections_selector, path: 'sections' do post 'selection' end |
