aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-12-05 11:30:41 +0100
committerXinhui2017-12-05 11:30:41 +0100
commit8848d279b4d3a27c1ddebe7636a49abe545ba73a (patch)
treebb42b7014a844f81161d4a03ecefbcda240f53ec /app
parent782ecb332769bbe66b3aab4f17eccd96dcc85f92 (diff)
downloadchouette-core-8848d279b4d3a27c1ddebe7636a49abe545ba73a.tar.bz2
Fix error 500 on time_table_combinations#new unable to find resource_class
Refs #5157
Diffstat (limited to 'app')
-rw-r--r--app/controllers/time_table_combinations_controller.rb1
-rw-r--r--app/views/time_table_combinations/new.html.slim1
2 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/time_table_combinations_controller.rb b/app/controllers/time_table_combinations_controller.rb
index 26cd425b3..317bc5518 100644
--- a/app/controllers/time_table_combinations_controller.rb
+++ b/app/controllers/time_table_combinations_controller.rb
@@ -1,5 +1,6 @@
class TimeTableCombinationsController < ChouetteController
include ReferentialSupport
+ defaults :resource_class => TimeTableCombination
belongs_to :referential do
belongs_to :time_table, :parent_class => Chouette::TimeTable
end
diff --git a/app/views/time_table_combinations/new.html.slim b/app/views/time_table_combinations/new.html.slim
index f18553081..7d2551311 100644
--- a/app/views/time_table_combinations/new.html.slim
+++ b/app/views/time_table_combinations/new.html.slim
@@ -1,4 +1,3 @@
-
.page_content
.container-fluid
.row