aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/journey_patterns_controller.rb5
-rw-r--r--config/routes.rb6
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