aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/referential_vehicle_journeys/_filters.html.slim2
-rw-r--r--config/routes.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/referential_vehicle_journeys/_filters.html.slim b/app/views/referential_vehicle_journeys/_filters.html.slim
index d650225b2..f1fbdb5d8 100644
--- a/app/views/referential_vehicle_journeys/_filters.html.slim
+++ b/app/views/referential_vehicle_journeys/_filters.html.slim
@@ -28,7 +28,7 @@
data: { \
'select2-ajax': 'true',
'select2ed-placeholder': t('referentials.filters.line'),
- url: referential_autocomplete_lines_path(@referential, format: :json),
+ url: autocomplete_referential_lines_path(@referential, format: :json),
'select2ed-allow-clear': true \
} \
},
diff --git a/config/routes.rb b/config/routes.rb
index dc75bec11..b6934936b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -41,7 +41,6 @@ ChouetteIhm::Application.routes.draw do
post :validate
end
- resources :autocomplete_lines, only: :index
resources :autocomplete_stop_areas, only: [:show, :index] do
get 'around', on: :member
end
@@ -58,6 +57,8 @@ ChouetteIhm::Application.routes.draw do
match 'lines' => 'lines#destroy_all', :via => :delete
resources :lines, controller: "referential_lines", except: :index do
+ get :autocomplete, on: :collection, to: 'autocomplete_lines#index'
+
resource :footnotes, controller: "line_footnotes"
delete :index, on: :collection, action: :delete_all
collection do