aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/timebands_controller.rb
diff options
context:
space:
mode:
authorBruno Perles2015-11-04 14:06:03 +0100
committerBruno Perles2015-11-04 14:06:03 +0100
commit3fab0c17c5a23e5cc20228eae3d1a718e45ee174 (patch)
treeee9495a6b9b40f7d16775d9daa91d58d6dc8ce6a /app/controllers/timebands_controller.rb
parent632dc2bf7de54729936998d86c840c626e2ab900 (diff)
parente5861132506bcc245c5d7cc34f00979c3932d2ce (diff)
downloadchouette-core-3fab0c17c5a23e5cc20228eae3d1a718e45ee174.tar.bz2
Merge vehicle_frequencies
Diffstat (limited to 'app/controllers/timebands_controller.rb')
-rw-r--r--app/controllers/timebands_controller.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/controllers/timebands_controller.rb b/app/controllers/timebands_controller.rb
new file mode 100644
index 000000000..446255cac
--- /dev/null
+++ b/app/controllers/timebands_controller.rb
@@ -0,0 +1,20 @@
+class TimebandsController < ChouetteController
+
+ defaults :resource_class => Chouette::Timeband
+
+ respond_to :html
+
+ belongs_to :referential
+
+ def new
+ new! do
+ build_breadcrumb :new
+ end
+ end
+
+ private
+
+ def timeband_params
+ params.require(:timeband).permit( :name, :start_time, :end_time )
+ end
+end