aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/journey_patterns_controller.rb6
-rw-r--r--app/views/journey_patterns/index.html.slim1
2 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/journey_patterns_controller.rb b/app/controllers/journey_patterns_controller.rb
index 326c5397a..b7cdccc72 100644
--- a/app/controllers/journey_patterns_controller.rb
+++ b/app/controllers/journey_patterns_controller.rb
@@ -15,6 +15,12 @@ class JourneyPatternsController < ChouetteController
alias_method :route, :parent
alias_method :journey_pattern, :resource
+ def index
+ index! do |format|
+ format.html { redirect_to referential_line_route_path(@referential,@line,@route) }
+ end
+ end
+
def create_resource(object)
object.special_update
end
diff --git a/app/views/journey_patterns/index.html.slim b/app/views/journey_patterns/index.html.slim
deleted file mode 100644
index 2c4a38bd6..000000000
--- a/app/views/journey_patterns/index.html.slim
+++ /dev/null
@@ -1 +0,0 @@
-= javascript_include_tag 'es6_browserified/journey_patterns/index.js'